From: Jaegeuk Kim Date: Tue, 14 Jul 2015 01:31:24 +0000 (-0700) Subject: f2fs: use a page temporarily for encrypted gced page X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1b77c416e7dfe317277057c32baa67ea9e486ae7;p=linux-beck.git 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 Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 2701e05af991..fcb263af58b3 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -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;