diff options
author | David Howells <dhowells@redhat.com> | 2018-09-11 22:20:53 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-10-23 17:38:56 +0100 |
commit | af9eb1fffa12bc2e052b1342505e65542e61e86c (patch) | |
tree | d534451d76dcd1b35c0df922911fa33a23619081 /fs/f2fs | |
parent | af7b5bc4c7e3894398552aa26cdbbac5636107b6 (diff) | |
download | linux-next-af9eb1fffa12bc2e052b1342505e65542e61e86c.tar.gz |
vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled
Only the mount namespace code that implements mount(2) should be using the
MS_* flags. Suppress them inside the kernel unless uapi/linux/mount.h is
included.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 2b110139420c..89970dd81b0e 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1486,7 +1486,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, err = dquot_suspend(sb, -1); if (err < 0) goto restore_opts; - } else if (f2fs_readonly(sb) && !(*flags & MS_RDONLY)) { + } else if (f2fs_readonly(sb) && !(*flags & SB_RDONLY)) { /* dquot_resume needs RW */ sb->s_flags &= ~SB_RDONLY; if (sb_any_quota_suspended(sb)) { |