diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-04-26 11:11:12 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-05-02 21:19:49 -0700 |
commit | 4d9780781304af0a57b6e369ce353f7bd2fb5e52 (patch) | |
tree | 96550c02be06a3e1ad0498857023e3975a1985b8 /fs/f2fs | |
parent | b9dd46188edc2f0d1f37328637860bb65a771124 (diff) | |
download | linux-4d9780781304af0a57b6e369ce353f7bd2fb5e52.tar.bz2 |
f2fs: nullify fio->encrypted_page for each writes
This makes sure each write request has nullified encrypted_page pointer.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/segment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 38b97ad6bceb..b0babb73a076 100644 --- 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); |