Btrfs: leave critical region in btrfs_find_all_roots as soon as possible
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Fri, 22 Jun 2012 12:01:00 +0000 (14:01 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 27 Jun 2012 14:34:39 +0000 (16:34 +0200)
commit155725c9c051a343be5e555bf943da827e6cf721
tree2d9fcdaf376797b077c4e230de575686ec7e1709
parentc3e0696523862c48b4d8c73ffb2867e9db478338
Btrfs: leave critical region in btrfs_find_all_roots as soon as possible

When delayed refs exist, btrfs_find_all_roots used to hold the delayed ref
mutex way longer than actually required. We ought to drop it immediately
after we're done collecting all the delayed refs.

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