]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not hold the file extent leaf locked when adding extent item
authorJosef Bacik <jbacik@fusionio.com>
Tue, 25 Sep 2012 19:26:16 +0000 (15:26 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 13:15:40 +0000 (09:15 -0400)
commit5068b988dbe25468cd997ce9cbfb365ed35a2434
tree2800971063509c668bfda07aafc7d8dd1ab1578b
parent9499cb88e4cec88425def99f6d28e4fa6ce8d10e
Btrfs: do not hold the file extent leaf locked when adding extent item

For some reason we unlock everything except the leaf we are on, set the path
blocking and then add the extent item for the extent we just finished
writing.  I can't for the life of me figure out why we would want to do
this, and the history doesn't really indicate that there was a real reason
for it, so just remove it.  This will reduce our tree lock contention on
heavy writes.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c