From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 In-Reply-To: <20170404214334.113915-1-ebiggers3@gmail.com> References: <20170404214334.113915-1-ebiggers3@gmail.com> From: Richard Weinberger Date: Thu, 6 Apr 2017 21:22:35 +0200 Message-ID: Subject: Re: [PATCH] fscrypt: remove fscrypt_symlink_data_len() Content-Type: text/plain; charset=UTF-8 To: Eric Biggers Cc: linux-fscrypt@vger.kernel.org, linux-fsdevel , "Theodore Y . Ts'o" , Jaegeuk Kim , Eric Biggers List-ID: On Tue, Apr 4, 2017 at 11:43 PM, Eric Biggers wrote: > From: Eric Biggers > > fscrypt_symlink_data_len() is never called and can be removed. > > Signed-off-by: Eric Biggers > --- > include/linux/fscrypt_common.h | 11 ----------- > 1 file changed, 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 { > char encrypted_path[1]; > } __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); > -} > - Reviewed-by: Richard Weinberger -- Thanks, //richard