summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-03-02 19:48:56 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2015-04-11 00:08:33 +0200
commitcff28521bbbfcd97ba56c515d4be5554c0d26014 (patch)
tree056e8a23dc39921f1b5b81fdb84c6bc173252d12 /fs/f2fs
parentf2fs: avoid to trigger writepage during POR (diff)
downloadlinux-cff28521bbbfcd97ba56c515d4be5554c0d26014.tar.xz
linux-cff28521bbbfcd97ba56c515d4be5554c0d26014.zip
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 <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 99cec04fa96e..5e8850edc5cc 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: