diff options
Diffstat (limited to 'fs/ufs')
-rw-r--r-- | fs/ufs/dir.c | 2 | ||||
-rw-r--r-- | fs/ufs/namei.c | 10 | ||||
-rw-r--r-- | fs/ufs/super.c | 4 | ||||
-rw-r--r-- | fs/ufs/symlink.c | 2 | ||||
-rw-r--r-- | fs/ufs/truncate.c | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/fs/ufs/dir.c b/fs/ufs/dir.c index 0ecc2cebed8f..1bfe8cabff0f 100644 --- a/fs/ufs/dir.c +++ b/fs/ufs/dir.c | |||
@@ -311,7 +311,7 @@ found: | |||
311 | */ | 311 | */ |
312 | int ufs_add_link(struct dentry *dentry, struct inode *inode) | 312 | int ufs_add_link(struct dentry *dentry, struct inode *inode) |
313 | { | 313 | { |
314 | struct inode *dir = dentry->d_parent->d_inode; | 314 | struct inode *dir = d_inode(dentry->d_parent); |
315 | const unsigned char *name = dentry->d_name.name; | 315 | const unsigned char *name = dentry->d_name.name; |
316 | int namelen = dentry->d_name.len; | 316 | int namelen = dentry->d_name.len; |
317 | struct super_block *sb = dir->i_sb; | 317 | struct super_block *sb = dir->i_sb; |
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index fd65deb4b5f0..e491a93a7e9a 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c | |||
@@ -165,7 +165,7 @@ out_fail: | |||
165 | static int ufs_link (struct dentry * old_dentry, struct inode * dir, | 165 | static int ufs_link (struct dentry * old_dentry, struct inode * dir, |
166 | struct dentry *dentry) | 166 | struct dentry *dentry) |
167 | { | 167 | { |
168 | struct inode *inode = old_dentry->d_inode; | 168 | struct inode *inode = d_inode(old_dentry); |
169 | int error; | 169 | int error; |
170 | 170 | ||
171 | lock_ufs(dir->i_sb); | 171 | lock_ufs(dir->i_sb); |
@@ -222,7 +222,7 @@ out_fail: | |||
222 | 222 | ||
223 | static int ufs_unlink(struct inode *dir, struct dentry *dentry) | 223 | static int ufs_unlink(struct inode *dir, struct dentry *dentry) |
224 | { | 224 | { |
225 | struct inode * inode = dentry->d_inode; | 225 | struct inode * inode = d_inode(dentry); |
226 | struct ufs_dir_entry *de; | 226 | struct ufs_dir_entry *de; |
227 | struct page *page; | 227 | struct page *page; |
228 | int err = -ENOENT; | 228 | int err = -ENOENT; |
@@ -244,7 +244,7 @@ out: | |||
244 | 244 | ||
245 | static int ufs_rmdir (struct inode * dir, struct dentry *dentry) | 245 | static int ufs_rmdir (struct inode * dir, struct dentry *dentry) |
246 | { | 246 | { |
247 | struct inode * inode = dentry->d_inode; | 247 | struct inode * inode = d_inode(dentry); |
248 | int err= -ENOTEMPTY; | 248 | int err= -ENOTEMPTY; |
249 | 249 | ||
250 | lock_ufs(dir->i_sb); | 250 | lock_ufs(dir->i_sb); |
@@ -263,8 +263,8 @@ static int ufs_rmdir (struct inode * dir, struct dentry *dentry) | |||
263 | static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry, | 263 | static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry, |
264 | struct inode *new_dir, struct dentry *new_dentry) | 264 | struct inode *new_dir, struct dentry *new_dentry) |
265 | { | 265 | { |
266 | struct inode *old_inode = old_dentry->d_inode; | 266 | struct inode *old_inode = d_inode(old_dentry); |
267 | struct inode *new_inode = new_dentry->d_inode; | 267 | struct inode *new_inode = d_inode(new_dentry); |
268 | struct page *dir_page = NULL; | 268 | struct page *dir_page = NULL; |
269 | struct ufs_dir_entry * dir_de = NULL; | 269 | struct ufs_dir_entry * dir_de = NULL; |
270 | struct page *old_page; | 270 | struct page *old_page; |
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 8092d3759a5e..b3bc3e7ae79d 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -144,10 +144,10 @@ static struct dentry *ufs_get_parent(struct dentry *child) | |||
144 | struct qstr dot_dot = QSTR_INIT("..", 2); | 144 | struct qstr dot_dot = QSTR_INIT("..", 2); |
145 | ino_t ino; | 145 | ino_t ino; |
146 | 146 | ||
147 | ino = ufs_inode_by_name(child->d_inode, &dot_dot); | 147 | ino = ufs_inode_by_name(d_inode(child), &dot_dot); |
148 | if (!ino) | 148 | if (!ino) |
149 | return ERR_PTR(-ENOENT); | 149 | return ERR_PTR(-ENOENT); |
150 | return d_obtain_alias(ufs_iget(child->d_inode->i_sb, ino)); | 150 | return d_obtain_alias(ufs_iget(d_inode(child)->i_sb, ino)); |
151 | } | 151 | } |
152 | 152 | ||
153 | static const struct export_operations ufs_export_ops = { | 153 | static const struct export_operations ufs_export_ops = { |
diff --git a/fs/ufs/symlink.c b/fs/ufs/symlink.c index d283628b4778..5b537e2fdda3 100644 --- a/fs/ufs/symlink.c +++ b/fs/ufs/symlink.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | static void *ufs_follow_link(struct dentry *dentry, struct nameidata *nd) | 35 | static void *ufs_follow_link(struct dentry *dentry, struct nameidata *nd) |
36 | { | 36 | { |
37 | struct ufs_inode_info *p = UFS_I(dentry->d_inode); | 37 | struct ufs_inode_info *p = UFS_I(d_inode(dentry)); |
38 | nd_set_link(nd, (char*)p->i_u1.i_symlink); | 38 | nd_set_link(nd, (char*)p->i_u1.i_symlink); |
39 | return NULL; | 39 | return NULL; |
40 | } | 40 | } |
diff --git a/fs/ufs/truncate.c b/fs/ufs/truncate.c index f04f89fbd4d9..21154704c168 100644 --- a/fs/ufs/truncate.c +++ b/fs/ufs/truncate.c | |||
@@ -492,7 +492,7 @@ out: | |||
492 | 492 | ||
493 | int ufs_setattr(struct dentry *dentry, struct iattr *attr) | 493 | int ufs_setattr(struct dentry *dentry, struct iattr *attr) |
494 | { | 494 | { |
495 | struct inode *inode = dentry->d_inode; | 495 | struct inode *inode = d_inode(dentry); |
496 | unsigned int ia_valid = attr->ia_valid; | 496 | unsigned int ia_valid = attr->ia_valid; |
497 | int error; | 497 | int error; |
498 | 498 | ||