]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't miss inode ref items in BTRFS_IOC_INO_LOOKUP
authorFilipe David Borba Manana <fdmanana@gmail.com>
Wed, 14 Aug 2013 02:00:21 +0000 (03:00 +0100)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:15:49 +0000 (08:15 -0400)
commit56df26e304c58f24e91fdbf4b5f9dabcab0927c3
tree16a32e2864b5751ed38e5d92bc996f25e2f291a9
parentbfde73239636fd6538ff35c8b857f76fa5736c8b
Btrfs: don't miss inode ref items in BTRFS_IOC_INO_LOOKUP

If the inode ref key was not found and the current leaf slot
was 0 (first item in the leaf) the code would always return
-ENOENT. This was not correct because the desired inode ref
item might be the last item in the previous leaf.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ioctl.c