]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/crypto/fname.c
fscrypt: Constify struct inode pointer
[karo-tx-linux.git] / fs / crypto / fname.c
index 9a28133ac3b848fc04fdab2e5a91b9e671820f56..faeaf0be9400f86d352ad09b72ed2569ea955e1b 100644 (file)
@@ -220,7 +220,7 @@ static int digest_decode(const char *src, int len, char *dst)
        return cp - dst;
 }
 
-u32 fscrypt_fname_encrypted_size(struct inode *inode, u32 ilen)
+u32 fscrypt_fname_encrypted_size(const struct inode *inode, u32 ilen)
 {
        int padding = 32;
        struct fscrypt_info *ci = inode->i_crypt_info;
@@ -238,7 +238,7 @@ EXPORT_SYMBOL(fscrypt_fname_encrypted_size);
  * Allocates an output buffer that is sufficient for the crypto operation
  * specified by the context and the direction.
  */
-int fscrypt_fname_alloc_buffer(struct inode *inode,
+int fscrypt_fname_alloc_buffer(const struct inode *inode,
                                u32 ilen, struct fscrypt_str *crypto_str)
 {
        unsigned int olen = fscrypt_fname_encrypted_size(inode, ilen);