From: Christoph Hellwig Date: Mon, 20 Feb 2012 02:28:18 +0000 (+0000) Subject: quota: make Q_XQUOTASYNC a noop X-Git-Tag: v3.4-rc1~55^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b217ed9e30f94b6e8e5e262020ef0ceab6113af;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Signed-off-by: Christoph Hellwig Signed-off-by: Ben Myers --- diff --git a/fs/quota/quota.c b/fs/quota/quota.c index 7898cd6..7a9bede 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, case Q_XGETQUOTA: return quota_getxquota(sb, type, id, addr); case Q_XQUOTASYNC: - /* caller already holds s_umount */ if (sb->s_flags & MS_RDONLY) return -EROFS; - writeback_inodes_sb(sb, WB_REASON_SYNC); + /* XFS quotas are fully coherent now, making this call a noop */ return 0; default: return -EINVAL;