From: Hugo Mills Date: Sat, 14 May 2011 17:43:41 +0000 (+0000) Subject: btrfs: Ensure the tree search ioctl returns the right number of records X-Git-Tag: v3.0-rc1~38^2~5^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2156867159ae7b3bc38ef1c26ea0ee30a895ef8;p=pandora-kernel.git btrfs: Ensure the tree search ioctl returns the right number of records Btrfs's tree search ioctl has a field to indicate that no more than a given number of records should be returned. The ioctl doesn't honour this, as the tested value is not incremented until the end of the copy_to_sk function. This patch removes an unnecessary local variable, and updates the num_found counter as each key is found in the tree. Signed-off-by: Hugo Mills Signed-off-by: Chris Mason --- Reading git-diff-tree failed