Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b288052e authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: process mount options on mount -o remount,



Btrfs wasn't parsing any new mount options during remount, making it
difficult to set mount options on a root drive.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent eb099670
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -511,6 +511,10 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
	struct btrfs_root *root = btrfs_sb(sb);
	int ret;

	ret = btrfs_parse_options(root, data);
	if (ret)
		return -EINVAL;

	if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY))
		return 0;