diff options
Diffstat (limited to 'fs/ext2/dir.c')
-rw-r--r-- | fs/ext2/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c index 6e1d4ab09d72..796b491e6978 100644 --- a/fs/ext2/dir.c +++ b/fs/ext2/dir.c | |||
@@ -486,7 +486,7 @@ void ext2_set_link(struct inode *dir, struct ext2_dir_entry_2 *de, | |||
486 | */ | 486 | */ |
487 | int ext2_add_link (struct dentry *dentry, struct inode *inode) | 487 | int ext2_add_link (struct dentry *dentry, struct inode *inode) |
488 | { | 488 | { |
489 | struct inode *dir = dentry->d_parent->d_inode; | 489 | struct inode *dir = d_inode(dentry->d_parent); |
490 | const char *name = dentry->d_name.name; | 490 | const char *name = dentry->d_name.name; |
491 | int namelen = dentry->d_name.len; | 491 | int namelen = dentry->d_name.len; |
492 | unsigned chunk_size = ext2_chunk_size(dir); | 492 | unsigned chunk_size = ext2_chunk_size(dir); |