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:
68f3139
)
f2fs: avoid page allocation for truncating partial inline_data
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 6 Sep 2016 22:55:54 +0000
(15:55 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 12 Sep 2016 17:30:39 +0000
(10:30 -0700)
When truncating cached inline_data, we don't need to allocate a new page
all the time. Instead, it must check its page cache only.
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 b74e985213f46bfcba16f62a1dbeb8778ffe4025..3b62949dfb0739e27c0bb93303fee4cfd29a186e 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-523,7
+523,7
@@
static int truncate_partial_data_page(struct inode *inode, u64 from,
return 0;
if (cache_only) {
- page = f
2fs_grab_cache_page(mapping, index, false
);
+ page = f
ind_lock_page(mapping, index
);
if (page && PageUptodate(page))
goto truncate_out;
f2fs_put_page(page, 1);