From: Gerhard Heift Date: Thu, 30 Jan 2014 15:23:57 +0000 (+0100) Subject: btrfs: tree_search: eliminate redundant nr_items check X-Git-Tag: omap-for-v3.16/fixes-against-rc1~14^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25c9bc2e2bc9d67de7fc49ff2784cae5de755192;p=pandora-kernel.git btrfs: tree_search: eliminate redundant nr_items check If the amount of items reached the given limit of nr_items, we can leave copy_to_sk without updating the key. Also by returning 1 we leave the loop in search_ioctl without rechecking if we reached the given limit. Signed-off-by: Gerhard Heift Signed-off-by: Chris Mason Acked-by: David Sterba --- Reading git-diff-tree failed