Commit 4bfd0362 authored by Eric Biggers's avatar Eric Biggers Committed by Theodore Ts'o

fscrypt: remove fscrypt_symlink_data_len()

fscrypt_symlink_data_len() is never called and can be removed.
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Reviewed-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent cd39e4ba
...@@ -46,17 +46,6 @@ struct fscrypt_symlink_data { ...@@ -46,17 +46,6 @@ struct fscrypt_symlink_data {
char encrypted_path[1]; char encrypted_path[1];
} __packed; } __packed;
/**
* This function is used to calculate the disk space required to
* store a filename of length l in encrypted symlink format.
*/
static inline u32 fscrypt_symlink_data_len(u32 l)
{
if (l < FS_CRYPTO_BLOCK_SIZE)
l = FS_CRYPTO_BLOCK_SIZE;
return (l + sizeof(struct fscrypt_symlink_data) - 1);
}
struct fscrypt_str { struct fscrypt_str {
unsigned char *name; unsigned char *name;
u32 len; u32 len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment