Functions that need in it, already calculate reclen from namelen by themselves: - ext4_find_dest_de() - ext4_insert_dentry() Signed-off-by: Azat Khuzhin <a3at.mail@xxxxxxxxx> --- fs/ext4/inline.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index d9ecbf1..809f285 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -994,11 +994,9 @@ static int ext4_add_dirent_to_inline(handle_t *handle, struct inode *dir = dentry->d_parent->d_inode; const char *name = dentry->d_name.name; int namelen = dentry->d_name.len; - unsigned short reclen; int err; struct ext4_dir_entry_2 *de; - reclen = EXT4_DIR_REC_LEN(namelen); err = ext4_find_dest_de(dir, inode, iloc->bh, inline_start, inline_size, name, namelen, &de); -- 1.8.4.rc3 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html