diff options
Diffstat (limited to 'fs/minix/namei.c')
-rw-r--r-- | fs/minix/namei.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/minix/namei.c b/fs/minix/namei.c index cd950e2331b6..a795a11e50c7 100644 --- a/fs/minix/namei.c +++ b/fs/minix/namei.c | |||
@@ -104,7 +104,7 @@ out_fail: | |||
104 | static int minix_link(struct dentry * old_dentry, struct inode * dir, | 104 | static int minix_link(struct dentry * old_dentry, struct inode * dir, |
105 | struct dentry *dentry) | 105 | struct dentry *dentry) |
106 | { | 106 | { |
107 | struct inode *inode = old_dentry->d_inode; | 107 | struct inode *inode = d_inode(old_dentry); |
108 | 108 | ||
109 | inode->i_ctime = CURRENT_TIME_SEC; | 109 | inode->i_ctime = CURRENT_TIME_SEC; |
110 | inode_inc_link_count(inode); | 110 | inode_inc_link_count(inode); |
@@ -151,7 +151,7 @@ out_dir: | |||
151 | static int minix_unlink(struct inode * dir, struct dentry *dentry) | 151 | static int minix_unlink(struct inode * dir, struct dentry *dentry) |
152 | { | 152 | { |
153 | int err = -ENOENT; | 153 | int err = -ENOENT; |
154 | struct inode * inode = dentry->d_inode; | 154 | struct inode * inode = d_inode(dentry); |
155 | struct page * page; | 155 | struct page * page; |
156 | struct minix_dir_entry * de; | 156 | struct minix_dir_entry * de; |
157 | 157 | ||
@@ -171,7 +171,7 @@ end_unlink: | |||
171 | 171 | ||
172 | static int minix_rmdir(struct inode * dir, struct dentry *dentry) | 172 | static int minix_rmdir(struct inode * dir, struct dentry *dentry) |
173 | { | 173 | { |
174 | struct inode * inode = dentry->d_inode; | 174 | struct inode * inode = d_inode(dentry); |
175 | int err = -ENOTEMPTY; | 175 | int err = -ENOTEMPTY; |
176 | 176 | ||
177 | if (minix_empty_dir(inode)) { | 177 | if (minix_empty_dir(inode)) { |
@@ -187,8 +187,8 @@ static int minix_rmdir(struct inode * dir, struct dentry *dentry) | |||
187 | static int minix_rename(struct inode * old_dir, struct dentry *old_dentry, | 187 | static int minix_rename(struct inode * old_dir, struct dentry *old_dentry, |
188 | struct inode * new_dir, struct dentry *new_dentry) | 188 | struct inode * new_dir, struct dentry *new_dentry) |
189 | { | 189 | { |
190 | struct inode * old_inode = old_dentry->d_inode; | 190 | struct inode * old_inode = d_inode(old_dentry); |
191 | struct inode * new_inode = new_dentry->d_inode; | 191 | struct inode * new_inode = d_inode(new_dentry); |
192 | struct page * dir_page = NULL; | 192 | struct page * dir_page = NULL; |
193 | struct minix_dir_entry * dir_de = NULL; | 193 | struct minix_dir_entry * dir_de = NULL; |
194 | struct page * old_page; | 194 | struct page * old_page; |