Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309944
b: refs/heads/master
c: b09de7f
h: refs/heads/master
v: v3
  • Loading branch information
Theodore Ts'o committed Apr 30, 2012
1 parent 94f42fc commit b1322ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c359a47e7d999a0ea7f397da2c15590d0a82815
refs/heads/master: b09de7fa5217bbcb4caf3d19bd5e94816947ff7a
7 changes: 2 additions & 5 deletions trunk/fs/ext4/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1612,11 +1612,8 @@ static int add_dirent_to_buf(handle_t *handle, struct dentry *dentry,
de = de1;
}
de->file_type = EXT4_FT_UNKNOWN;
if (inode) {
de->inode = cpu_to_le32(inode->i_ino);
ext4_set_de_type(dir->i_sb, de, inode->i_mode);
} else
de->inode = 0;
de->inode = cpu_to_le32(inode->i_ino);
ext4_set_de_type(dir->i_sb, de, inode->i_mode);
de->name_len = namelen;
memcpy(de->name, name, namelen);
/*
Expand Down

0 comments on commit b1322ba

Please sign in to comment.