mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
6eedc70150
commit
ceed17236a
9 changed files with 37 additions and 13 deletions
|
@ -30,7 +30,7 @@
|
|||
static int __sync_filesystem(struct super_block *sb, int wait)
|
||||
{
|
||||
if (sb->s_qcop && sb->s_qcop->quota_sync)
|
||||
sb->s_qcop->quota_sync(sb, -1, wait);
|
||||
sb->s_qcop->quota_sync(sb, -1);
|
||||
|
||||
if (wait)
|
||||
sync_inodes_sb(sb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue