diff mbox

[v2,22/35] ubifs: write quota back in ubifs_sync

Message ID 1438235311-23788-23-git-send-email-yangds.fnst@cn.fujitsu.com
State Superseded
Headers show

Commit Message

Dongsheng Yang July 30, 2015, 5:48 a.m. UTC
Call dquot_writeback_dquots to write quota back in ubifs_sync

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
---
 fs/ubifs/super.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Richard Weinberger Aug. 8, 2015, 9:17 p.m. UTC | #1
Am 30.07.2015 um 07:48 schrieb Dongsheng Yang:
> Call dquot_writeback_dquots to write quota back in ubifs_sync
> 
> Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
> ---
>  fs/ubifs/super.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
> index 7031c16..9fdfd69 100644
> --- a/fs/ubifs/super.c
> +++ b/fs/ubifs/super.c
> @@ -490,6 +490,8 @@ static int ubifs_sync_fs(struct super_block *sb, int wait)
>  	if (!wait)
>  		return 0;
>  
> +	dquot_writeback_dquots(sb, -1);
> +

Reviewed-by: Richard Weinberger <richard@nod.at>

Thanks,
//richard
diff mbox

Patch

diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 7031c16..9fdfd69 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -490,6 +490,8 @@  static int ubifs_sync_fs(struct super_block *sb, int wait)
 	if (!wait)
 		return 0;
 
+	dquot_writeback_dquots(sb, -1);
+
 	/*
 	 * Synchronize write buffers, because 'ubifs_run_commit()' does not
 	 * do this if it waits for an already running commit.