Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375807
b: refs/heads/master
c: 03b71c6
h: refs/heads/master
i:
  375805: 6a48cbf
  375803: c6cf6bc
  375799: e9a0006
  375791: 45a7a45
  375775: e586216
  375743: c87b830
  375679: cfa98ba
  375551: ce0d482
  375295: 2ea8356
  374783: 3c01f5a
v: v3
  • Loading branch information
Gabriel de Perthuis authored and Josef Bacik committed May 18, 2013
1 parent 11d5d86 commit a6edb5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a52f4cd2b1a863a42c1cb268b1cddad451cdfede
refs/heads/master: 03b71c6ca6286625d8f1ed44aabab9b5bf5dac10
10 changes: 5 additions & 5 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,11 @@ static noinline int copy_to_sk(struct btrfs_root *root,
item_off = btrfs_item_ptr_offset(leaf, i);
item_len = btrfs_item_size_nr(leaf, i);

if (item_len > BTRFS_SEARCH_ARGS_BUFSIZE)
btrfs_item_key_to_cpu(leaf, key, i);
if (!key_in_sk(key, sk))
continue;

if (sizeof(sh) + item_len > BTRFS_SEARCH_ARGS_BUFSIZE)
item_len = 0;

if (sizeof(sh) + item_len + *sk_offset >
Expand All @@ -1810,10 +1814,6 @@ static noinline int copy_to_sk(struct btrfs_root *root,
goto overflow;
}

btrfs_item_key_to_cpu(leaf, key, i);
if (!key_in_sk(key, sk))
continue;

sh.objectid = key->objectid;
sh.offset = key->offset;
sh.type = key->type;
Expand Down

0 comments on commit a6edb5c

Please sign in to comment.