diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-23 22:04:33 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-29 01:41:52 +0300 |
commit | 4375a33664de17af9032b5f491a49bd256670927 (patch) | |
tree | 7c083fd9fafecaac1e6b49d5c60abe1ecbe68ece /fs/f2fs/f2fs.h | |
parent | fcc85a4d86b5018f08717160c89c0eb50afd1dca (diff) | |
download | linux-4375a33664de17af9032b5f491a49bd256670927.tar.xz |
f2fs crypto: add encryption support in read/write paths
This patch adds encryption support in read and write paths.
Note that, in f2fs, we need to consider cleaning operation.
In cleaning procedure, we must avoid encrypting and decrypting written blocks.
So, this patch implements move_encrypted_block().
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 1bf75f8c40bf..4a7a9d3024bf 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -656,6 +656,7 @@ struct f2fs_io_info { int rw; /* contains R/RS/W/WS with REQ_META/REQ_PRIO */ block_t blk_addr; /* block address to be written */ struct page *page; /* page to be written */ + struct page *encrypted_page; /* encrypted page */ }; #define is_read_io(rw) (((rw) & 1) == READ) |