aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inline.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/inline.c')
-rw-r--r--fs/ext4/inline.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c
index d9ecbf1113a7..bae987549dc3 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,
994 struct inode *dir = dentry->d_parent->d_inode; 994 struct inode *dir = dentry->d_parent->d_inode;
995 const char *name = dentry->d_name.name; 995 const char *name = dentry->d_name.name;
996 int namelen = dentry->d_name.len; 996 int namelen = dentry->d_name.len;
997 unsigned short reclen;
998 int err; 997 int err;
999 struct ext4_dir_entry_2 *de; 998 struct ext4_dir_entry_2 *de;
1000 999
1001 reclen = EXT4_DIR_REC_LEN(namelen);
1002 err = ext4_find_dest_de(dir, inode, iloc->bh, 1000 err = ext4_find_dest_de(dir, inode, iloc->bh,
1003 inline_start, inline_size, 1001 inline_start, inline_size,
1004 name, namelen, &de); 1002 name, namelen, &de);
@@ -1442,6 +1440,7 @@ int ext4_read_inline_dir(struct file *file,
1442 if (ret < 0) 1440 if (ret < 0)
1443 goto out; 1441 goto out;
1444 1442
1443 ret = 0;
1445 sb = inode->i_sb; 1444 sb = inode->i_sb;
1446 parent_ino = le32_to_cpu(((struct ext4_dir_entry_2 *)dir_buf)->inode); 1445 parent_ino = le32_to_cpu(((struct ext4_dir_entry_2 *)dir_buf)->inode);
1447 offset = ctx->pos; 1446 offset = ctx->pos;