summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2017-04-12 19:01:33 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2017-04-12 21:57:08 +0200
commit6c3acd97572b2414075503aa79f305c1d6268114 (patch)
tree941084fc54662245cb9734ffce8b9833ac5cdb66 /fs/f2fs/file.c
parentf2fs: give time to flush dirty pages for checkpoint (diff)
downloadlinux-6c3acd97572b2414075503aa79f305c1d6268114.tar.xz
linux-6c3acd97572b2414075503aa79f305c1d6268114.zip
f2fs: allocate hot_data for atomic writes
We'd better allocate atomic writes to hot_data zone. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 4731eb587e06..0ac833dd2634 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -1531,6 +1531,7 @@ static int f2fs_ioc_start_atomic_write(struct file *filp)
goto out;
set_inode_flag(inode, FI_ATOMIC_FILE);
+ set_inode_flag(inode, FI_HOT_DATA);
f2fs_update_time(F2FS_I_SB(inode), REQ_TIME);
if (!get_dirty_pages(inode))