]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: log message when rw remount is attempted with unclean tree-log
authorDavid Sterba <dsterba@suse.com>
Wed, 5 Feb 2020 16:12:28 +0000 (17:12 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 12 Feb 2020 16:17:00 +0000 (17:17 +0100)
commitda2cb5bbaf880f1fe454672e497a33fe92d65ce5
treefd2da93f686786d6572c94125a43f58be12494ce
parent0f15e980d8f6c6eff687f80089c13f349612b509
btrfs: log message when rw remount is attempted with unclean tree-log

A remount to a read-write filesystem is not safe when there's tree-log
to be replayed. Files that could be opened until now might be affected
by the changes in the tree-log.

A regular mount is needed to replay the log so the filesystem presents
the consistent view with the pending changes included.

CC: stable@vger.kernel.org # 4.4+
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c