aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuo Chao <yan@linux.vnet.ibm.com>2013-01-28 21:26:44 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-01-28 21:26:44 -0500
commit2bbbee2a68a726deeac7da5ae7dd79b00301d6fd (patch)
tree27721b2b6796fda0987afb8f7b3d880263e87ab5
parentd5ac77730516028f3ceda825abefac9a1153b138 (diff)
ext4: remove unused variable in add_dirent_to_buf()
After commit 978fef9 (create __ext4_insert_dentry for dir entry insertion), 'reclen' is not used anymore. Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
-rw-r--r--fs/ext4/namei.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index 99813db159d9..8bc01a3dcaca 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -1703,7 +1703,6 @@ static int add_dirent_to_buf(handle_t *handle, struct dentry *dentry,
1703 const char *name = dentry->d_name.name; 1703 const char *name = dentry->d_name.name;
1704 int namelen = dentry->d_name.len; 1704 int namelen = dentry->d_name.len;
1705 unsigned int blocksize = dir->i_sb->s_blocksize; 1705 unsigned int blocksize = dir->i_sb->s_blocksize;
1706 unsigned short reclen;
1707 int csum_size = 0; 1706 int csum_size = 0;
1708 int err; 1707 int err;
1709 1708
@@ -1711,7 +1710,6 @@ static int add_dirent_to_buf(handle_t *handle, struct dentry *dentry,
1711 EXT4_FEATURE_RO_COMPAT_METADATA_CSUM)) 1710 EXT4_FEATURE_RO_COMPAT_METADATA_CSUM))
1712 csum_size = sizeof(struct ext4_dir_entry_tail); 1711 csum_size = sizeof(struct ext4_dir_entry_tail);
1713 1712
1714 reclen = EXT4_DIR_REC_LEN(namelen);
1715 if (!de) { 1713 if (!de) {
1716 err = ext4_find_dest_de(dir, inode, 1714 err = ext4_find_dest_de(dir, inode,
1717 bh, bh->b_data, blocksize - csum_size, 1715 bh, bh->b_data, blocksize - csum_size,