mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
f2fs: use a page temporarily for encrypted gced page
That encrypted page is used temporarily, so we don't need to mark it accessed. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
8f46dcaea8
commit
1b77c416e7
1 changed files with 4 additions and 1 deletions
|
@ -552,7 +552,10 @@ static void move_encrypted_block(struct inode *inode, block_t bidx)
|
|||
fio.page = page;
|
||||
fio.blk_addr = dn.data_blkaddr;
|
||||
|
||||
fio.encrypted_page = grab_cache_page(META_MAPPING(fio.sbi), fio.blk_addr);
|
||||
fio.encrypted_page = pagecache_get_page(META_MAPPING(fio.sbi),
|
||||
fio.blk_addr,
|
||||
FGP_LOCK|FGP_CREAT,
|
||||
GFP_NOFS);
|
||||
if (!fio.encrypted_page)
|
||||
goto put_out;
|
||||
|
||||
|
|
Loading…
Reference in a new issue