diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-07-14 01:31:24 (GMT) |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-08-05 15:08:04 (GMT) |
commit | 1b77c416e7dfe317277057c32baa67ea9e486ae7 (patch) | |
tree | 1606b86671f21bc60564d63097721ec7f873ecff /fs/f2fs | |
parent | 8f46dcaea8d9d1552f4071f1ddeeca4427c1d83a (diff) | |
download | linux-1b77c416e7dfe317277057c32baa67ea9e486ae7.tar.xz |
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/gc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 2701e05..fcb263a 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; |