diff options
Diffstat (limited to 'fs/minix/dir.c')
-rw-r--r-- | fs/minix/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/minix/dir.c b/fs/minix/dir.c index dfaf6fa9b7b5..118e4e7bc935 100644 --- a/fs/minix/dir.c +++ b/fs/minix/dir.c | |||
@@ -156,7 +156,7 @@ minix_dirent *minix_find_entry(struct dentry *dentry, struct page **res_page) | |||
156 | { | 156 | { |
157 | const char * name = dentry->d_name.name; | 157 | const char * name = dentry->d_name.name; |
158 | int namelen = dentry->d_name.len; | 158 | int namelen = dentry->d_name.len; |
159 | struct inode * dir = dentry->d_parent->d_inode; | 159 | struct inode * dir = d_inode(dentry->d_parent); |
160 | struct super_block * sb = dir->i_sb; | 160 | struct super_block * sb = dir->i_sb; |
161 | struct minix_sb_info * sbi = minix_sb(sb); | 161 | struct minix_sb_info * sbi = minix_sb(sb); |
162 | unsigned long n; | 162 | unsigned long n; |
@@ -203,7 +203,7 @@ found: | |||
203 | 203 | ||
204 | int minix_add_link(struct dentry *dentry, struct inode *inode) | 204 | int minix_add_link(struct dentry *dentry, struct inode *inode) |
205 | { | 205 | { |
206 | struct inode *dir = dentry->d_parent->d_inode; | 206 | struct inode *dir = d_inode(dentry->d_parent); |
207 | const char * name = dentry->d_name.name; | 207 | const char * name = dentry->d_name.name; |
208 | int namelen = dentry->d_name.len; | 208 | int namelen = dentry->d_name.len; |
209 | struct super_block * sb = dir->i_sb; | 209 | struct super_block * sb = dir->i_sb; |