diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-30 00:10:53 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-29 00:41:55 +0200 |
commit | cbaf042a3cc6c37f9005fd6952cbf2013ab7cc15 (patch) | |
tree | 2aa53a29b5337e5052ae09dbc892fd53772d30c1 /fs/f2fs/inode.c | |
parent | f2fs crypto: add filename encryption for roll-forward recovery (diff) | |
download | linux-cbaf042a3cc6c37f9005fd6952cbf2013ab7cc15.tar.xz linux-cbaf042a3cc6c37f9005fd6952cbf2013ab7cc15.zip |
f2fs crypto: add symlink encryption
This patch implements encryption support for symlink.
Signed-off-by: Uday Savagaonkar <savagaon@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inode.c')
-rw-r--r-- | fs/f2fs/inode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 00f0e74176cb..ea6ba3bc8472 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -198,7 +198,10 @@ make_now: inode->i_mapping->a_ops = &f2fs_dblock_aops; mapping_set_gfp_mask(inode->i_mapping, GFP_F2FS_HIGH_ZERO); } else if (S_ISLNK(inode->i_mode)) { - inode->i_op = &f2fs_symlink_inode_operations; + if (f2fs_encrypted_inode(inode)) + inode->i_op = &f2fs_encrypted_symlink_inode_operations; + else + inode->i_op = &f2fs_symlink_inode_operations; inode->i_mapping->a_ops = &f2fs_dblock_aops; } else if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || S_ISFIFO(inode->i_mode) || S_ISSOCK(inode->i_mode)) { |