diff options
author | 2011-05-14 17:43:41 +0000 | |
---|---|---|
committer | 2011-05-23 13:05:39 -0400 | |
commit | e2156867159ae7b3bc38ef1c26ea0ee30a895ef8 (patch) | |
tree | d949884cdaf5ebeb8d9ba14ec0284c9ece437164 /include/linux/uts.h | |
parent | BTRFS: Remove unused node_lock (diff) | |
download | linux-rng-e2156867159ae7b3bc38ef1c26ea0ee30a895ef8.tar.xz linux-rng-e2156867159ae7b3bc38ef1c26ea0ee30a895ef8.zip |
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 <hugo@carfax.org.uk>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'include/linux/uts.h')
0 files changed, 0 insertions, 0 deletions