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:
b9dd461
)
f2fs: nullify fio->encrypted_page for each writes
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 26 Apr 2017 18:11:12 +0000
(11:11 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 3 May 2017 04:19:49 +0000
(21:19 -0700)
This makes sure each write request has nullified encrypted_page pointer.
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 38b97ad6bceb1ebfd06163f7c709db659fb3a5ba..b0babb73a0769eea65dcd25d6738a8a071faf08b 100644
(file)
--- a/
fs/f2fs/segment.c
+++ b/
fs/f2fs/segment.c
@@
-291,7
+291,6
@@
static int __commit_inmem_pages(struct inode *inode,
.type = DATA,
.op = REQ_OP_WRITE,
.op_flags = REQ_SYNC | REQ_PRIO,
- .encrypted_page = NULL,
};
pgoff_t last_idx = ULONG_MAX;
int err = 0;
@@
-312,6
+311,7
@@
static int __commit_inmem_pages(struct inode *inode,
fio.page = page;
fio.old_blkaddr = NULL_ADDR;
+ fio.encrypted_page = NULL;
err = do_write_data_page(&fio);
if (err) {
unlock_page(page);