projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3097388
)
f2fs: allocate hot_data for atomic writes
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 12 Apr 2017 17:01:33 +0000
(10:01 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 12 Apr 2017 19:57:08 +0000
(12:57 -0700)
We'd better allocate atomic writes to hot_data zone.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/file.c
b/fs/f2fs/file.c
index 4731eb587e064316fb36c7c09a1356557271e709..0ac833dd263401eebb159c0c46cdb9954013d2c4 100644
(file)
--- 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))