projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5ac777
)
ext4: remove unused variable in add_dirent_to_buf()
author
Guo Chao
<
[email protected]
>
Tue, 29 Jan 2013 02:26:44 +0000
(21:26 -0500)
committer
Theodore Ts'o
<
[email protected]
>
Tue, 29 Jan 2013 02:26:44 +0000
(21:26 -0500)
After commit
978fef9
(create __ext4_insert_dentry for dir entry
insertion), 'reclen' is not used anymore.
Signed-off-by: Guo Chao <
[email protected]
>
Signed-off-by: "Theodore Ts'o" <
[email protected]
>
Reviewed-by: Darrick J. Wong <
[email protected]
>
fs/ext4/namei.c
patch
|
blob
|
history
diff --git
a/fs/ext4/namei.c
b/fs/ext4/namei.c
index 99813db159d9aed46508bf6df6f59ff979c5fc1b..8bc01a3dcaca52ec99baeb1b9f7765391505937f 100644
(file)
--- 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,
const char *name = dentry->d_name.name;
int namelen = dentry->d_name.len;
unsigned int blocksize = dir->i_sb->s_blocksize;
- unsigned short reclen;
int csum_size = 0;
int err;
@@
-1711,7
+1710,6
@@
static int add_dirent_to_buf(handle_t *handle, struct dentry *dentry,
EXT4_FEATURE_RO_COMPAT_METADATA_CSUM))
csum_size = sizeof(struct ext4_dir_entry_tail);
- reclen = EXT4_DIR_REC_LEN(namelen);
if (!de) {
err = ext4_find_dest_de(dir, inode,
bh, bh->b_data, blocksize - csum_size,