summaryrefslogtreecommitdiffstats
path: root/fs/affs/namei.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-03-17 18:25:59 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-15 15:06:57 -0400
commit2b0143b5c986be1ce8408b3aadc4709e0a94429d (patch)
tree98b1dee70f3d5d9ac9309f4638e41864ddcd0952 /fs/affs/namei.c
parentce0b16ddf18df35026164fda4a642ef10c01f442 (diff)
VFS: normal filesystems (and lustre): d_inode() annotations
that's the bulk of filesystem drivers dealing with inodes of their own Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/affs/namei.c')
-rw-r--r--fs/affs/namei.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/affs/namei.c b/fs/affs/namei.c
index ffb7bd82c2a5..372100288ee5 100644
--- a/fs/affs/namei.c
+++ b/fs/affs/namei.c
@@ -250,7 +250,7 @@ int
250affs_unlink(struct inode *dir, struct dentry *dentry) 250affs_unlink(struct inode *dir, struct dentry *dentry)
251{ 251{
252 pr_debug("%s(dir=%lu, %lu \"%pd\")\n", __func__, dir->i_ino, 252 pr_debug("%s(dir=%lu, %lu \"%pd\")\n", __func__, dir->i_ino,
253 dentry->d_inode->i_ino, dentry); 253 d_inode(dentry)->i_ino, dentry);
254 254
255 return affs_remove_header(dentry); 255 return affs_remove_header(dentry);
256} 256}
@@ -318,7 +318,7 @@ int
318affs_rmdir(struct inode *dir, struct dentry *dentry) 318affs_rmdir(struct inode *dir, struct dentry *dentry)
319{ 319{
320 pr_debug("%s(dir=%lu, %lu \"%pd\")\n", __func__, dir->i_ino, 320 pr_debug("%s(dir=%lu, %lu \"%pd\")\n", __func__, dir->i_ino,
321 dentry->d_inode->i_ino, dentry); 321 d_inode(dentry)->i_ino, dentry);
322 322
323 return affs_remove_header(dentry); 323 return affs_remove_header(dentry);
324} 324}
@@ -401,7 +401,7 @@ err:
401int 401int
402affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) 402affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
403{ 403{
404 struct inode *inode = old_dentry->d_inode; 404 struct inode *inode = d_inode(old_dentry);
405 405
406 pr_debug("%s(%lu, %lu, \"%pd\")\n", __func__, inode->i_ino, dir->i_ino, 406 pr_debug("%s(%lu, %lu, \"%pd\")\n", __func__, inode->i_ino, dir->i_ino,
407 dentry); 407 dentry);
@@ -428,13 +428,13 @@ affs_rename(struct inode *old_dir, struct dentry *old_dentry,
428 return retval; 428 return retval;
429 429
430 /* Unlink destination if it already exists */ 430 /* Unlink destination if it already exists */
431 if (new_dentry->d_inode) { 431 if (d_really_is_positive(new_dentry)) {
432 retval = affs_remove_header(new_dentry); 432 retval = affs_remove_header(new_dentry);
433 if (retval) 433 if (retval)
434 return retval; 434 return retval;
435 } 435 }
436 436
437 bh = affs_bread(sb, old_dentry->d_inode->i_ino); 437 bh = affs_bread(sb, d_inode(old_dentry)->i_ino);
438 if (!bh) 438 if (!bh)
439 return -EIO; 439 return -EIO;
440 440