diff options
author | Jan Kara <jack@suse.cz> | 2012-07-03 10:45:28 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-22 15:58:19 -0400 |
commit | ceed17236a7491b44ee2be21f56a41ab997cbe7d (patch) | |
tree | d3204566d1a2efb4b927de039044881e16d30c2d /fs/quota/quota.c | |
parent | 6eedc70150d55b5885800eb6664ea226dc2cb66f (diff) |
quota: Split dquot_quota_sync() to writeback and cache flushing part
Split off part of dquot_quota_sync() which writes dquots into a quota file
to a separate function. In the next patch we will use the function from
filesystems and we do not want to abuse ->quota_sync quotactl callback more
than necessary.
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/quota/quota.c')
-rw-r--r-- | fs/quota/quota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c index 9a391204ca27..c659f92298d3 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c | |||
@@ -47,7 +47,7 @@ static int check_quotactl_permission(struct super_block *sb, int type, int cmd, | |||
47 | static void quota_sync_one(struct super_block *sb, void *arg) | 47 | static void quota_sync_one(struct super_block *sb, void *arg) |
48 | { | 48 | { |
49 | if (sb->s_qcop && sb->s_qcop->quota_sync) | 49 | if (sb->s_qcop && sb->s_qcop->quota_sync) |
50 | sb->s_qcop->quota_sync(sb, *(int *)arg, 1); | 50 | sb->s_qcop->quota_sync(sb, *(int *)arg); |
51 | } | 51 | } |
52 | 52 | ||
53 | static int quota_sync_all(int type) | 53 | static int quota_sync_all(int type) |
@@ -270,7 +270,7 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, | |||
270 | case Q_SYNC: | 270 | case Q_SYNC: |
271 | if (!sb->s_qcop->quota_sync) | 271 | if (!sb->s_qcop->quota_sync) |
272 | return -ENOSYS; | 272 | return -ENOSYS; |
273 | return sb->s_qcop->quota_sync(sb, type, 1); | 273 | return sb->s_qcop->quota_sync(sb, type); |
274 | case Q_XQUOTAON: | 274 | case Q_XQUOTAON: |
275 | case Q_XQUOTAOFF: | 275 | case Q_XQUOTAOFF: |
276 | case Q_XQUOTARM: | 276 | case Q_XQUOTARM: |