author: Linus Torvalds <torvalds@linux-foundation.org> 2017-09-14 18:54:01 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2017-09-14 18:54:01 -0700
commit: 0f0d12728e56c94d3289c6831243b6faeae8a19d
parent: 581bfce969cbfc7ce43ee92273be9cb7c3fdfa61
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index 07e08c7d05ca..a9c5dfe6b83e 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -753,7 +753,7 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id,
case Q_XGETNEXTQUOTA:
return quota_getnextxquota(sb, type, id, addr);
case Q_XQUOTASYNC:
- if (sb->s_flags & MS_RDONLY)
+ if (sb_rdonly(sb))
return -EROFS;
/* XFS quotas are fully coherent now, making this call a noop */
return 0;