summaryrefslogtreecommitdiff
path: root/fs/f2fs/f2fs_crypto.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-06-01 12:39:30 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-06-01 16:21:10 -0700
commit4683ff837c2d000212f72ce72cab22f061e5a77c (patch)
tree847f0c100de55b920c1fdaf956df33b976995f71 /fs/f2fs/f2fs_crypto.h
parent9236cac5666ea8b3a3b92b132a046c200b99dca8 (diff)
f2fs crypto: remove alloc_page for bounce_page
We don't need to call alloc_page() prior to mempool_alloc(), since the mempool_alloc() calls alloc_page() internally. And, if __GFP_WAIT is set, it never fails on page allocation, so let's give GFP_NOWAIT and handle ENOMEM by writepage(). Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs_crypto.h')
-rw-r--r--fs/f2fs/f2fs_crypto.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/f2fs_crypto.h b/fs/f2fs/f2fs_crypto.h
index be59d91928fd..c2c1c2b63b25 100644
--- a/fs/f2fs/f2fs_crypto.h
+++ b/fs/f2fs/f2fs_crypto.h
@@ -84,8 +84,7 @@ struct f2fs_crypt_info {
};
#define F2FS_CTX_REQUIRES_FREE_ENCRYPT_FL 0x00000001
-#define F2FS_BOUNCE_PAGE_REQUIRES_FREE_ENCRYPT_FL 0x00000002
-#define F2FS_WRITE_PATH_FL 0x00000004
+#define F2FS_WRITE_PATH_FL 0x00000002
struct f2fs_crypto_ctx {
union {