VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: David Howells <dhowells@redhat.com> 2017-07-17 08:45:34 +0100 committer: David Howells <dhowells@redhat.com> 2017-07-17 08:45:34 +0100 commit: bc98a42c1f7d0f886c0c1b75a92a004976a46d9f parent: 94e92e7ac90d06e1e839e112d3ae80b2457dbdd7
Commit Summary:
VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb)
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c
index b573c3b9a328..8cf941c3b511 100644
--- a/fs/affs/amigaffs.c
+++ b/fs/affs/amigaffs.c
@@ -450,7 +450,7 @@ affs_error(struct super_block *sb, const char *function, const char *fmt, ...)
 	vaf.fmt = fmt;
 	vaf.va = &args;
 	pr_crit("error (device %s): %s(): %pV\n", sb->s_id, function, &vaf);
-	if (!(sb->s_flags & MS_RDONLY))
+	if (!sb_rdonly(sb))
 		pr_warn("Remounting filesystem read-only\n");
 	sb->s_flags |= MS_RDONLY;
 	va_end(args);