[PATCH 16/25] ubifs: write quota back in ubifs_sync

Dongsheng Yang yangds.fnst at cn.fujitsu.com
Tue Jul 21 01:37:47 PDT 2015


Signed-off-by: Dongsheng Yang <yangds.fnst at 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 e53cd40..b8cc291 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -479,6 +479,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.
-- 
1.8.4.2




More information about the linux-mtd mailing list