| To: | linux-fsdevel@xxxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 09/17] quota: Make Q_XQUOTASYNC support VFS quota syncing |
| From: | Jan Kara <jack@xxxxxxx> |
| Date: | Fri, 16 Jan 2015 13:47:43 +0100 |
| Cc: | xfs@xxxxxxxxxxx, cluster-devel@xxxxxxxxxx, ocfs2-devel@xxxxxxxxxxxxxx, Jan Kara <jack@xxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1421412471-4747-1-git-send-email-jack@xxxxxxx> |
| References: | <1421412471-4747-1-git-send-email-jack@xxxxxxx> |
Call ->quota_sync method from Q_XQUOTASYNC for better userspace
compatibility.
Signed-off-by: Jan Kara <jack@xxxxxxx>
---
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;
}
--
2.1.2
|
| Previous by Date: | [PATCH 14/17] quota: Remove ->get_xstate and ->get_xstatev callbacks, Jan Kara |
|---|---|
| Next by Date: | [PATCH 13/17] gfs2: Convert to using ->get_state callback, Jan Kara |
| Previous by Thread: | Re: [PATCH 14/17] quota: Remove ->get_xstate and ->get_xstatev callbacks, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 09/17] quota: Make Q_XQUOTASYNC support VFS quota syncing, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |