]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add path->really_keep_locks
authorJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:00:01 +0000 (17:00 -0500)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:24 +0000 (20:46 -0500)
commit20b9cc5c760be94603ea9ac7259ec6b5c1fbe319
tree86bca8caad1c33955f4bf6f4564d8a144fa88f78
parentc3f79e4c13dcb47e06ab7d97bc74087c83a91fd9
Btrfs: add path->really_keep_locks

You'd think path->keep_locks would keep all the locks wouldn't you?  You'd
be wrong.  It only keeps them if the slot is pointing to the last item in
the node.  This is for use with btrfs_next_leaf, which needs this sort of
thing.  But the horrible horrible things I'm going to do to the tree log
means I really need everything held from root to leaf so I can add and
delete items in the same search.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/ctree.c
fs/btrfs/ctree.h