From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kara Subject: [PATCH 12/25] quota: Make Q_XQUOTASYNC support VFS quota syncing Date: Thu, 18 Dec 2014 16:37:26 +0100 Message-ID: <1418917059-23870-13-git-send-email-jack@suse.cz> References: <1418917059-23870-1-git-send-email-jack@suse.cz> Cc: xfs@oss.sgi.com, cluster-devel@redhat.com, ocfs2-devel@oss.oracle.com, Jan Kara To: linux-fsdevel@vger.kernel.org Return-path: Received: from cantor2.suse.de ([195.135.220.15]:42326 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbaLRPiA (ORCPT ); Thu, 18 Dec 2014 10:38:00 -0500 In-Reply-To: <1418917059-23870-1-git-send-email-jack@suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Call ->quota_sync method from Q_XQUOTASYNC for better userspace compatibility. Signed-off-by: Jan Kara --- fs/quota/quota.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/quota/quota.c b/fs/quota/quota.c index 2cc50b35a3b5..5ec04321aace 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c @@ -477,8 +477,9 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, case Q_XQUOTASYNC: if (sb->s_flags & MS_RDONLY) return -EROFS; - /* XFS quotas are fully coherent now, making this call a noop */ - return 0; + if (!sb->s_qcop->quota_sync) + return 0; + return sb->s_qcop->quota_sync(sb, type); default: return -EINVAL; } -- 1.8.4.5