diff options
author | Chao Yu <chao2.yu@samsung.com> | 2016-02-15 04:54:26 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-02-22 19:07:23 -0500 |
commit | 922ec355f86365388203672119b5bca346a45085 (patch) | |
tree | 5f8f45642a18e05c51da9053fe1f8da2c9d197c0 /fs/f2fs/f2fs.h | |
parent | ae1086686487f13130937918ca91d920c1daafcb (diff) |
f2fs crypto: avoid unneeded memory allocation when {en/de}crypting symlink
This patch adopts f2fs with codes of ext4, it removes unneeded memory
allocation in creating/accessing path of symlink.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
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 0d2b1ba9660e..f9c294eee0f1 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -2226,6 +2226,7 @@ int _f2fs_get_encryption_info(struct inode *inode); | |||
2226 | /* crypto_fname.c */ | 2226 | /* crypto_fname.c */ |
2227 | bool f2fs_valid_filenames_enc_mode(uint32_t); | 2227 | bool f2fs_valid_filenames_enc_mode(uint32_t); |
2228 | u32 f2fs_fname_crypto_round_up(u32, u32); | 2228 | u32 f2fs_fname_crypto_round_up(u32, u32); |
2229 | unsigned f2fs_fname_encrypted_size(struct inode *, u32); | ||
2229 | int f2fs_fname_crypto_alloc_buffer(struct inode *, u32, struct f2fs_str *); | 2230 | int f2fs_fname_crypto_alloc_buffer(struct inode *, u32, struct f2fs_str *); |
2230 | int f2fs_fname_disk_to_usr(struct inode *, f2fs_hash_t *, | 2231 | int f2fs_fname_disk_to_usr(struct inode *, f2fs_hash_t *, |
2231 | const struct f2fs_str *, struct f2fs_str *); | 2232 | const struct f2fs_str *, struct f2fs_str *); |