diff options
author | David Sterba <dsterba@suse.cz> | 2011-05-31 16:07:27 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-06-04 12:11:22 (GMT) |
commit | 7841cb2898f66a73062c64d0ef5733dde7279e46 (patch) | |
tree | b7a94d96d44971845951a59e9fb7b5c2e30c46b3 /fs/btrfs/transaction.c | |
parent | 4b9465cb9e3859186eefa1ca3b990a5849386320 (diff) | |
download | linux-fsl-qoriq-7841cb2898f66a73062c64d0ef5733dde7279e46.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 2d5c6d2..dd71966 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -817,7 +817,7 @@ int btrfs_defrag_root(struct btrfs_root *root, int cacheonly) btrfs_btree_balance_dirty(info->tree_root, nr); cond_resched(); - if (root->fs_info->closing || ret != -EAGAIN) + if (btrfs_fs_closing(root->fs_info) || ret != -EAGAIN) break; } root->defrag_running = 0; |