Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b77c416 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

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: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 8f46dcae
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;