linux-next: build failure after merge of the vfs tree
Subsystems (2)
Hi Al,
After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) failed like this:
/home/sfr/next/next/fs/f2fs/super.c: In function 'f2fs_remount':/home/sfr/next/next/fs/f2fs/super.c:1589:16: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?
if ((*flags & MS_RDONLY) && test_opt(sbi, DISABLE_CHECKPOINT)) {
^~~~~~~~~
IS_RDONLYCaused by commit
dcf8001d292b ("vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled")
interacting with commit
f80f781514ef ("f2fs: checkpoint disabling")
from the f2fs tree.
I have added the following merge fix patch for today. If it is correct, I assume that it could be applied to f2fs tree as the the other uses of MS_RDONLY have already been changed to SB_RDONLY. (There is another use of MS_READONLY in this function that is already cleaned up in the vfs tree commit.)
From: Stephen Rothwell <[email protected]>
Date: Wed, 3 Oct 2018 10:27:04 +1000
Subject: [PATCH] f2fs: update for MS_* flags mostly going away
--- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/super.c +1 -1
@@ -1586,7 +1586,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, goto restore_opts; } -if ((*flags &MS_RDONLY ) &&test_opt (sbi,DISABLE_CHECKPOINT )) { +if ((*flags &SB_RDONLY ) &&test_opt (sbi,DISABLE_CHECKPOINT )) { err = -EINVAL ;f2fs_msg (sbi->sb,KERN_WARNING ,"disabling checkpoint not compatible with read-only" );
Signature · 5 lines
2.18.0 -- Cheers, Stephen Rothwell
Hi all,
Quoted 18 lines · On Wed, 3 Oct 2018 10:32:22 +1000 Stephen Rothwell <[email protected]> wrote:
After merging the vfs tree, today's linux-next build (
x86_64allmodconfig) failed like this:
/home/sfr/next/next/fs/f2fs/super.c: In function 'f2fs_remount':/home/sfr/next/next/fs/f2fs/super.c:1589:16: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?if ((*flags & MS_RDONLY) && test_opt(sbi, DISABLE_CHECKPOINT)) { ^~~~~~~~~ IS_RDONLYCaused by commit
dcf8001d292b("vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled")interacting with commit
f80f781514ef("f2fs: checkpoint disabling")
Quoted 7 lines
from the f2fs tree.
I have added the following merge fix patch for today. If it is correct, I assume that it could be applied to f2fs tree as the the other uses of
MS_RDONLYhave already been changed toSB_RDONLY. (There is another use ofMS_READONLYin this function that is already cleaned up in the vfs tree commit.)
Can this be applied to the f2fs tree?
Quoted 24 lines
From: Stephen Rothwell <[email protected]>
Date: Wed, 3 Oct 2018 10:27:04 +1000
Subject: [PATCH] f2fs: update for MS_* flags mostly going awaySigned-off-by Stephen Rothwell <[email protected]>--- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/f2fs/super.c +1
-1@@ -1586,7 +1586,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, goto restore_opts; } -if ((*flags &MS_RDONLY ) &&test_opt (sbi,DISABLE_CHECKPOINT )) { +if ((*flags &SB_RDONLY ) &&test_opt (sbi,DISABLE_CHECKPOINT )) { err = -EINVAL ;f2fs_msg (sbi->sb,KERN_WARNING ,"disabling checkpoint not compatible with read-only" );Signature · 1 line
2.18.0
Signature · 2 lines
Cheers, Stephen Rothwell
Jaegeuk Kim
maintainerQuoted 23 lines · Stephen Rothwell
Hi all,
Quoted 20 lines · On Wed, 3 Oct 2018 10:32:22 +1000 Stephen Rothwell <[email protected]> wrote:
After merging the vfs tree, today's linux-next build (
x86_64allmodconfig) failed like this:
/home/sfr/next/next/fs/f2fs/super.c: In function 'f2fs_remount':/home/sfr/next/next/fs/f2fs/super.c:1589:16: error: 'MS_RDONLY' undeclared (first use in this function); did you mean 'IS_RDONLY'?if ((*flags & MS_RDONLY) && test_opt(sbi, DISABLE_CHECKPOINT)) { ^~~~~~~~~ IS_RDONLYCaused by commit
dcf8001d292b("vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled")interacting with commit
f80f781514ef("f2fs: checkpoint disabling")from the f2fs tree.
Quoted 7 lines
Quoted 5 lines
I have added the following merge fix patch for today. If it is correct, I assume that it could be applied to f2fs tree as the the other uses of
MS_RDONLYhave already been changed toSB_RDONLY. (There is another use ofMS_READONLYin this function that is already cleaned up in the vfs tree commit.)Can this be applied to the f2fs tree?
Hi Stephen,
I've modified this patch in f2fs tree to use SB_RDONLY.
Thanks,
Quoted 29 lines
Quoted 25 lines
From: Stephen Rothwell <[email protected]>
Date: Wed, 3 Oct 2018 10:27:04 +1000
Subject: [PATCH] f2fs: update for MS_* flags mostly going awaySigned-off-by Stephen Rothwell <[email protected]>--- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/f2fs/super.c +1
-1@@ -1586,7 +1586,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, goto restore_opts; } -if ((*flags &MS_RDONLY ) &&test_opt (sbi,DISABLE_CHECKPOINT )) { +if ((*flags &SB_RDONLY ) &&test_opt (sbi,DISABLE_CHECKPOINT )) { err = -EINVAL ;f2fs_msg (sbi->sb,KERN_WARNING ,"disabling checkpoint not compatible with read-only" );Signature · 1 line
2.18.0Signature · 2 lines
Cheers, Stephen Rothwell
Hi Jaegeuk,
Quoted 2 lines · On Tue, 16 Oct 2018 09:37:44 -0700 Jaegeuk Kim <[email protected]> wrote:
I've modified this patch in f2fs tree to use
SB_RDONLY.
Thanks for that.
Signature · 2 lines
Cheers, Stephen Rothwell