diff options
author | Eric Biggers <ebiggers@google.com> | 2020-01-20 10:17:36 +0300 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2020-01-23 01:45:10 +0300 |
commit | 1b3b827ee5230a73c8ed1b2cd8d53b4bd001268b (patch) | |
tree | a98c3efdce8cb0eb6f58ada4ada88d7efd9ae407 /fs/crypto/fscrypt_private.h | |
parent | 13a10da94615d81087e718517794f2868a8b3fab (diff) | |
download | linux-1b3b827ee5230a73c8ed1b2cd8d53b4bd001268b.tar.xz |
fscrypt: add "fscrypt_" prefix to fname_encrypt()
fname_encrypt() is a global function, due to being used in both fname.c
and hooks.c. So it should be prefixed with "fscrypt_", like all the
other global functions in fs/crypto/.
Link: https://lore.kernel.org/r/20200120071736.45915-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/crypto/fscrypt_private.h')
-rw-r--r-- | fs/crypto/fscrypt_private.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/crypto/fscrypt_private.h b/fs/crypto/fscrypt_private.h index b22e8decebed..fea7f5547428 100644 --- a/fs/crypto/fscrypt_private.h +++ b/fs/crypto/fscrypt_private.h @@ -235,8 +235,9 @@ void fscrypt_generate_iv(union fscrypt_iv *iv, u64 lblk_num, const struct fscrypt_info *ci); /* fname.c */ -extern int fname_encrypt(const struct inode *inode, const struct qstr *iname, - u8 *out, unsigned int olen); +extern int fscrypt_fname_encrypt(const struct inode *inode, + const struct qstr *iname, + u8 *out, unsigned int olen); extern bool fscrypt_fname_encrypted_size(const struct inode *inode, u32 orig_len, u32 max_len, u32 *encrypted_len_ret); |