From: Jaegeuk Kim Date: Mon, 2 Mar 2015 18:48:56 +0000 (-0800) Subject: f2fs: clear append/update flags once fsync is done X-Git-Tag: v5.15~15937^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cff28521bbbfcd97ba56c515d4be5554c0d26014;p=platform%2Fkernel%2Flinux-starfive.git f2fs: clear append/update flags once fsync is done When fsync is done through checkpoint, previous f2fs missed to clear append and update flag. This patch fixes to clear them. This was originally catched by Changman Lee before. Signed-off-by: Changman Lee Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 99cec04..5e8850e 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -241,6 +241,8 @@ go_write: * will be used only for fsynced inodes after checkpoint. */ try_to_fix_pino(inode); + clear_inode_flag(fi, FI_APPEND_WRITE); + clear_inode_flag(fi, FI_UPDATE_WRITE); goto out; } sync_nodes: