summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2010-03-18 12:14:54 -0400
committerChris Mason <chris.mason@oracle.com>2010-03-18 12:14:54 -0400
commit90fdde147fd32d18a20be5b498d5f26e56cca8a3 (patch)
treeab861e9190145df710345bb1e54c5f3f1d77d296 /fs/btrfs
parentabc6e1341bda974e2d0eddb75f57a20ac18e9b33 (diff)
downloadop-kernel-dev-90fdde147fd32d18a20be5b498d5f26e56cca8a3.zip
op-kernel-dev-90fdde147fd32d18a20be5b498d5f26e56cca8a3.tar.gz
Btrfs: return keys for large items to the search ioctl
The search ioctl was skipping large items entirely (ones that are too big for the results buffer). This changes things to at least copy the item header so that we can send information about the item back to userland. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 291aa51..fd757f5 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -997,8 +997,8 @@ static noinline int copy_to_sk(struct btrfs_root *root,
read_extent_buffer(leaf, p,
item_off, item_len);
*sk_offset += item_len;
- found++;
}
+ found++;
if (*num_found >= sk->nr_items)
break;
OpenPOWER on IntegriCloud