Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752836Ab3IRUSN (ORCPT ); Wed, 18 Sep 2013 16:18:13 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:54019 "EHLO mail-la0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751627Ab3IRUSM (ORCPT ); Wed, 18 Sep 2013 16:18:12 -0400 From: Azat Khuzhin To: linux-kernel@vger.kernel.org Cc: Azat Khuzhin , "Theodore Ts'o" , Andreas Dilger , linux-ext4@vger.kernel.org (open list:EXT4 FILE SYSTEM) Subject: [PATCH] ext4: drop unsed reclen variable from ext4_add_dirent_to_inline() Date: Thu, 19 Sep 2013 00:17:30 +0400 Message-Id: <1379535450-31253-1-git-send-email-a3at.mail@gmail.com> X-Mailer: git-send-email 1.8.4.rc3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1041 Lines: 34 Functions that need in it, already calculate reclen from namelen by themselves: - ext4_find_dest_de() - ext4_insert_dentry() Signed-off-by: Azat Khuzhin --- 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-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/