diff options
author | David Sterba <dsterba@suse.com> | 2017-06-15 20:10:03 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-20 15:22:42 +0300 |
commit | fac03c8daeb581e2bc38e5a8c0c6a42cf87cf1c3 (patch) | |
tree | a6f7828cc438f65698b4341ae84f576fbc853eec /fs/btrfs/super.c | |
parent | 79b4f4c605b76194448315865ebcf6fcb0844fc5 (diff) | |
download | linux-fac03c8daeb581e2bc38e5a8c0c6a42cf87cf1c3.tar.xz |
btrfs: move fs_info::fs_frozen to the flags
We can keep the state among the other fs_info flags, there's no reason
why fs_frozen would need to be separate.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 53d43cd3cace..2100be6ae68e 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2242,7 +2242,7 @@ static int btrfs_freeze(struct super_block *sb) struct btrfs_fs_info *fs_info = btrfs_sb(sb); struct btrfs_root *root = fs_info->tree_root; - fs_info->fs_frozen = 1; + set_bit(BTRFS_FS_FROZEN, &fs_info->flags); /* * We don't need a barrier here, we'll wait for any transaction that * could be in progress on other threads (and do delayed iputs that @@ -2261,7 +2261,9 @@ static int btrfs_freeze(struct super_block *sb) static int btrfs_unfreeze(struct super_block *sb) { - btrfs_sb(sb)->fs_frozen = 0; + struct btrfs_fs_info *fs_info = btrfs_sb(sb); + + clear_bit(BTRFS_FS_FROZEN, &fs_info->flags); return 0; } |