aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-02-19 21:28:18 -0500
committerBen Myers <bpm@sgi.com>2012-02-29 15:10:42 -0500
commit4b217ed9e30f94b6e8e5e262020ef0ceab6113af (patch)
tree7fb82309209f93697c0b8e7cc34529c97a180dc4 /fs/quota
parent89605011915aec5c6194e53a9f02631d68aea6bc (diff)
quota: make Q_XQUOTASYNC a noop
Now that XFS takes quota reservations into account there is no need to flush anything before reporting quotas - in addition to beeing fully transactional all quota information is also 100% coherent with the rest of the filesystem now. Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/quota')
-rw-r--r--fs/quota/quota.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index 7898cd688a00..7a9bedeb1d57 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -282,10 +282,9 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id,
282 case Q_XGETQUOTA: 282 case Q_XGETQUOTA:
283 return quota_getxquota(sb, type, id, addr); 283 return quota_getxquota(sb, type, id, addr);
284 case Q_XQUOTASYNC: 284 case Q_XQUOTASYNC:
285 /* caller already holds s_umount */
286 if (sb->s_flags & MS_RDONLY) 285 if (sb->s_flags & MS_RDONLY)
287 return -EROFS; 286 return -EROFS;
288 writeback_inodes_sb(sb, WB_REASON_SYNC); 287 /* XFS quotas are fully coherent now, making this call a noop */
289 return 0; 288 return 0;
290 default: 289 default:
291 return -EINVAL; 290 return -EINVAL;