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:
1f02071
)
f2fs: fix an error return value in truncate_partial_data_page
author
Yunlei He
<heyunlei@huawei.com>
Tue, 28 Feb 2017 12:32:41 +0000
(20:32 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 21 Mar 2017 20:52:16 +0000
(16:52 -0400)
This patch fix a error return value in truncate_partial_data_page
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 5f7317875a6726b9ea968f81cbf401b2c8966f8f..6d120a5b8f4b3521e0b5fc78b8a827f5725505e4 100644
(file)
--- a/
fs/f2fs/file.c
+++ b/
fs/f2fs/file.c
@@
-528,7
+528,7
@@
static int truncate_partial_data_page(struct inode *inode, u64 from,
page = get_lock_data_page(inode, index, true);
if (IS_ERR(page))
- return
0
;
+ return
PTR_ERR(page) == -ENOENT ? 0 : PTR_ERR(page)
;
truncate_out:
f2fs_wait_on_page_writeback(page, DATA, true);
zero_user(page, offset, PAGE_SIZE - offset);