]> git.karo-electronics.de Git - linux-beck.git/commitdiff
f2fs: use a page temporarily for encrypted gced page
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 14 Jul 2015 01:31:24 +0000 (18:31 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 5 Aug 2015 15:08:04 +0000 (08:08 -0700)
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>
fs/f2fs/gc.c

index 2701e05af99147bbeb7a2b69116d05db0a577928..fcb263af58b38ea596698c8438fcd34f932e2f92 100644 (file)
@@ -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;