lkml.org 
[lkml]   [2022]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] f2fs: fix to tag gcing flag on page during file defragment
Date
In order to garantee migrated data be persisted during checkpoint,
otherwise out-of-order persistency between data and node may cause
data corruption after SPOR.

Signed-off-by: Chao Yu <chao.yu@oppo.com>
---
fs/f2fs/file.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index a05d842a7e72..e2310c91183c 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -2602,6 +2602,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi,
}

set_page_dirty(page);
+ set_page_private_gcing(page);
f2fs_put_page(page, 1);

idx++;
--
2.36.1
\
 
 \ /
  Last update: 2022-05-27 16:58    [W:0.028 / U:0.984 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site