All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2 dhowells/mount-api] staging: erofs: rename superblock flags (MS_xyz -> SB_xyz)
@ 2018-09-06  9:01 ` Gao Xiang
  0 siblings, 0 replies; 16+ messages in thread
From: Gao Xiang @ 2018-09-06  9:01 UTC (permalink / raw)
  To: David Howells, Alexander Viro
  Cc: Greg Kroah-Hartman, LKML, devel, linux-erofs, Chao Yu, Miao Xie,
	weidu.du, Gao Xiang

This patch follows commit 1751e8a6cb93 ("Rename superblock
flags (MS_xyz -> SB_xyz)") and after commit ("vfs: Suppress
MS_* flag defs within the kernel unless explicitly enabled"),
there is no MS_RDONLY and MS_NOATIME at all.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
---

Once used MS_RDONLY, MS_NOATIME for the compatibility of older kernels,
which are removed in ("vfs: Suppress MS_* flag defs within the kernel
unless explicitly enabled").

 drivers/staging/erofs/super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/erofs/super.c b/drivers/staging/erofs/super.c
index 1aec509..2df9768 100644
--- a/drivers/staging/erofs/super.c
+++ b/drivers/staging/erofs/super.c
@@ -340,7 +340,7 @@ static int erofs_read_super(struct super_block *sb,
 		goto err_sbread;
 
 	sb->s_magic = EROFS_SUPER_MAGIC;
-	sb->s_flags |= MS_RDONLY | MS_NOATIME;
+	sb->s_flags |= SB_RDONLY | SB_NOATIME;
 	sb->s_maxbytes = MAX_LFS_FILESIZE;
 	sb->s_time_gran = 1;
 
@@ -627,7 +627,7 @@ static int erofs_remount(struct super_block *sb, int *flags, char *data)
 {
 	BUG_ON(!sb_rdonly(sb));
 
-	*flags |= MS_RDONLY;
+	*flags |= SB_RDONLY;
 	return 0;
 }
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-09-10  8:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06  9:01 [PATCH 1/2 dhowells/mount-api] staging: erofs: rename superblock flags (MS_xyz -> SB_xyz) Gao Xiang
2018-09-06  9:01 ` Gao Xiang
2018-09-06  9:01 ` [PATCH 2/2 dhowells/mount-api] staging: erofs: update .mount and .remount_sb Gao Xiang
2018-09-06  9:01   ` Gao Xiang
2018-09-06  9:39   ` Chao Yu
2018-09-06  9:39     ` Chao Yu
2018-09-06 10:08 ` [PATCH 1/2 dhowells/mount-api] staging: erofs: rename superblock flags (MS_xyz -> SB_xyz) David Howells
2018-09-06 10:08   ` David Howells
2018-09-06 10:37   ` Gao Xiang
2018-09-06 10:37     ` Gao Xiang
2018-09-10  8:13     ` Greg Kroah-Hartman
2018-09-10  8:13       ` Greg Kroah-Hartman
2018-09-10  8:21       ` Gao Xiang
2018-09-10  8:21         ` Gao Xiang
2018-09-06 10:09 ` [PATCH 2/2 dhowells/mount-api] staging: erofs: update .mount and .remount_sb David Howells
2018-09-06 10:09   ` David Howells

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.