]> 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)
commit73d41712c45a7a15885b6e195f8e2c2f3d3f9f55
tree11d1c098981a65bcbe11f4be594d6e9855f55448
parentc56532ae184e609f440d49877643b4513e8759ee
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