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/gfs2/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/gfs2/quota.c')
-rw-r--r-- | fs/gfs2/quota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index b97178e7d39..27b5cc7d688 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c | |||
@@ -1108,7 +1108,7 @@ void gfs2_quota_change(struct gfs2_inode *ip, s64 change, | |||
1108 | } | 1108 | } |
1109 | } | 1109 | } |
1110 | 1110 | ||
1111 | int gfs2_quota_sync(struct super_block *sb, int type, int wait) | 1111 | int gfs2_quota_sync(struct super_block *sb, int type) |
1112 | { | 1112 | { |
1113 | struct gfs2_sbd *sdp = sb->s_fs_info; | 1113 | struct gfs2_sbd *sdp = sb->s_fs_info; |
1114 | struct gfs2_quota_data **qda; | 1114 | struct gfs2_quota_data **qda; |
@@ -1154,7 +1154,7 @@ int gfs2_quota_sync(struct super_block *sb, int type, int wait) | |||
1154 | 1154 | ||
1155 | static int gfs2_quota_sync_timeo(struct super_block *sb, int type) | 1155 | static int gfs2_quota_sync_timeo(struct super_block *sb, int type) |
1156 | { | 1156 | { |
1157 | return gfs2_quota_sync(sb, type, 0); | 1157 | return gfs2_quota_sync(sb, type); |
1158 | } | 1158 | } |
1159 | 1159 | ||
1160 | int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, u32 id) | 1160 | int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, u32 id) |