mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
ext4: remove unused code from ext4_find_entry()
The unused code found in ext3_find_entry() is also present (and still unused) in the ext4_find_entry() code. This patch removes it. Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
221879c927
commit
01f4adc044
@ -861,14 +861,10 @@ static struct buffer_head * ext4_find_entry (struct dentry *dentry,
|
||||
int i, err;
|
||||
struct inode *dir = dentry->d_parent->d_inode;
|
||||
int namelen;
|
||||
const u8 *name;
|
||||
unsigned blocksize;
|
||||
|
||||
*res_dir = NULL;
|
||||
sb = dir->i_sb;
|
||||
blocksize = sb->s_blocksize;
|
||||
namelen = dentry->d_name.len;
|
||||
name = dentry->d_name.name;
|
||||
if (namelen > EXT4_NAME_LEN)
|
||||
return NULL;
|
||||
if (is_dx(dir)) {
|
||||
|
Loading…
Reference in New Issue
Block a user