diff options
| author | Eric Biggers <ebiggers@google.com> | 2017-04-04 17:43:34 -0400 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2017-04-30 01:26:34 -0400 |
| commit | 4bfd036221c0bf75a0f475b05e22f7be9abc3101 (patch) | |
| tree | fea30ced943bf207df4bbaa4ac831f81107b879f /include | |
| parent | cd39e4bac11125bc32ba6101b1ceb46ef773f4b6 (diff) | |
fscrypt: remove fscrypt_symlink_data_len()
fscrypt_symlink_data_len() is never called and can be removed.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fscrypt_common.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/fscrypt_common.h b/include/linux/fscrypt_common.h index 10c1abfbac6c..0a30c106c1e5 100644 --- a/include/linux/fscrypt_common.h +++ b/include/linux/fscrypt_common.h | |||
| @@ -46,17 +46,6 @@ struct fscrypt_symlink_data { | |||
| 46 | char encrypted_path[1]; | 46 | char encrypted_path[1]; |
| 47 | } __packed; | 47 | } __packed; |
| 48 | 48 | ||
| 49 | /** | ||
| 50 | * This function is used to calculate the disk space required to | ||
| 51 | * store a filename of length l in encrypted symlink format. | ||
| 52 | */ | ||
| 53 | static inline u32 fscrypt_symlink_data_len(u32 l) | ||
| 54 | { | ||
| 55 | if (l < FS_CRYPTO_BLOCK_SIZE) | ||
| 56 | l = FS_CRYPTO_BLOCK_SIZE; | ||
| 57 | return (l + sizeof(struct fscrypt_symlink_data) - 1); | ||
| 58 | } | ||
| 59 | |||
| 60 | struct fscrypt_str { | 49 | struct fscrypt_str { |
| 61 | unsigned char *name; | 50 | unsigned char *name; |
| 62 | u32 len; | 51 | u32 len; |
