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:
cfc4d97
)
f2fs crypto: zero next free dnode block
author
Chao Yu
<chao2.yu@samsung.com>
Mon, 18 May 2015 10:00:06 +0000
(18:00 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 1 Jun 2015 23:21:00 +0000
(16:21 -0700)
Now page cache of meta inode is used by garbage collection for encrypted page,
it may contain random data, so we should zero it before issuing discard.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/segment.c
b/fs/f2fs/segment.c
index e0821d2c39e49ba8df2483b356a39bf0344c5852..7254c11344bee01185ae72278c4e18fbd9274572 100644
(file)
--- a/
fs/f2fs/segment.c
+++ b/
fs/f2fs/segment.c
@@
-519,7
+519,7
@@
void discard_next_dnode(struct f2fs_sb_info *sbi, block_t blkaddr)
if (err) {
struct page *page = grab_meta_page(sbi, blkaddr);
- /* zero-filled page */
+ memset(page_address(page), 0, F2FS_BLKSIZE);
set_page_dirty(page);
f2fs_put_page(page, 1);
}