diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 99cec04fa96eedfbd4675a627f5f5f614ff2e6c0..5e8850edc5cca464b2cabe9d04bb5b8dd02deee1 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -241,6 +241,8 @@ int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) * 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: