diff options
author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2020-07-23 00:18:04 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-07-27 12:55:47 +0200 |
commit | 88c4703f00a9e8ab60133690cfdaccea6c07e560 (patch) | |
tree | beb88df3aac44a52137d25c5bd8332bd668f278f /fs/btrfs/export.c | |
parent | 162e0a16b7d93629c8325ea32d99b38d17bc03eb (diff) | |
download | linux-88c4703f00a9e8ab60133690cfdaccea6c07e560.tar.gz linux-88c4703f00a9e8ab60133690cfdaccea6c07e560.tar.bz2 linux-88c4703f00a9e8ab60133690cfdaccea6c07e560.zip |
btrfs: open-code remount flag setting in btrfs_remount
When we're (re)mounting a btrfs filesystem we set the
BTRFS_FS_STATE_REMOUNTING state in fs_info to serialize against async
reclaim or defrags.
This flag is set in btrfs_remount_prepare() called by btrfs_remount().
As btrfs_remount_prepare() does nothing but setting this flag and
doesn't have a second caller, we can just open-code the flag setting in
btrfs_remount().
Similarly do for so clearing of the flag by moving it out of
btrfs_remount_cleanup() into btrfs_remount() to be symmetrical.
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/export.c')
0 files changed, 0 insertions, 0 deletions