Btrfs: fix unlock in __start_delalloc_inodes()
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Wed, 2 Apr 2014 11:53:32 +0000 (19:53 +0800)
committerChris Mason <clm@fb.com>
Mon, 7 Apr 2014 16:08:50 +0000 (09:08 -0700)
commita1ecaabbf90cf4e93eb2b50aef3d07ab630c6fb1
treebe79e536c83d72f455c25971f20cf99c511d59ae
parent3b080b2564287be91605bfd1d5ee985696e61d3c
Btrfs: fix unlock in __start_delalloc_inodes()

This patch fix a regression caused by the following patch:
Btrfs: don't flush all delalloc inodes when we doesn't get s_umount lock

break while loop will make us call @spin_unlock() without
calling @spin_lock() before, fix it.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c