btrfs: add helper for fs_info->closing

wrap checking of filesystem 'closing' flag and fix a few missing memory
barriers.

Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
David Sterba
2011-05-31 18:07:27 +02:00
committed by Chris Mason
parent 4b9465cb9e
commit 7841cb2898
8 changed files with 20 additions and 16 deletions

View File

@ -62,8 +62,7 @@ again:
goto out;
while (1) {
smp_mb();
if (fs_info->closing)
if (btrfs_fs_closing(fs_info))
goto out;
leaf = path->nodes[0];