On Thu, Jul 23, 2020 at 12:18:04AM +0900, Johannes Thumshirn wrote: > 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@xxxxxxx> > --- > Changes to v1: > - Move clearing of the flag as well (David) Added to misc-next, thanks.
