summaryrefslogtreecommitdiffstats
path: root/fs/efs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/efs/super.c')
-rw-r--r--fs/efs/super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/efs/super.c b/fs/efs/super.c
index 368f7dd21c61..65b59009555b 100644
--- a/fs/efs/super.c
+++ b/fs/efs/super.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* super.c
*
@@ -306,7 +307,7 @@ static int efs_fill_super(struct super_block *s, void *d, int silent)
}
brelse(bh);
- if (!(s->s_flags & MS_RDONLY)) {
+ if (!sb_rdonly(s)) {
#ifdef DEBUG
pr_info("forcing read-only mode\n");
#endif
OpenPOWER on IntegriCloud