projects
/
GitHub
/
moto-9609
/
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:
a3ebfe4
)
f2fs: remove redundant set_page_dirty()
author
Yunlei He
<heyunlei@huawei.com>
Mon, 27 Feb 2017 10:59:53 +0000
(18:59 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 27 Feb 2017 18:40:11 +0000
(10:40 -0800)
This patch remove redundant set_page_dirty in truncate_blocks
Signed-off-by: Yunlei He <heyunlei@huawei.com>
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 36c156557bb18b09c0c5ef944c8beeff44c8d586..c6ca00c872654e29a0ba35e5bf2ae8a9f10e6f40 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-567,8
+567,7
@@
int truncate_blocks(struct inode *inode, u64 from, bool lock)
}
if (f2fs_has_inline_data(inode)) {
- if (truncate_inline_inode(ipage, from))
- set_page_dirty(ipage);
+ truncate_inline_inode(ipage, from);
if (from == 0)
clear_inode_flag(inode, FI_DATA_EXIST);
f2fs_put_page(ipage, 1);