]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add inodes before dropping the extent lock in find_all_leafs
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 30 May 2012 16:05:21 +0000 (18:05 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 31 May 2012 17:53:08 +0000 (19:53 +0200)
commitc80ba5760a971f1f4688b9a7a15af1defb4701a0
tree11d1c098981a65bcbe11f4be594d6e9855f55448
parentbb7c7ba3bb653a1ec135427fd9ce088a118f4ddd
Btrfs: add inodes before dropping the extent lock in find_all_leafs

We must build up the inode list with the extent lock held after following
indirect refs.

This also requires an extension to ulists, which allows to modify the stored
aux value in case a key already exists in the list.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/backref.c
fs/btrfs/ulist.c
fs/btrfs/ulist.h