diff options
author | David Howells <dhowells@redhat.com> | 2015-03-17 18:25:59 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-15 15:06:57 -0400 |
commit | 2b0143b5c986be1ce8408b3aadc4709e0a94429d (patch) | |
tree | 98b1dee70f3d5d9ac9309f4638e41864ddcd0952 /fs/ocfs2/namei.c | |
parent | ce0b16ddf18df35026164fda4a642ef10c01f442 (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/ocfs2/namei.c')
-rw-r--r-- | fs/ocfs2/namei.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index b5c3a5ea3ee6..c0727037c6f9 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c | |||
@@ -689,8 +689,8 @@ static int ocfs2_link(struct dentry *old_dentry, | |||
689 | struct dentry *dentry) | 689 | struct dentry *dentry) |
690 | { | 690 | { |
691 | handle_t *handle; | 691 | handle_t *handle; |
692 | struct inode *inode = old_dentry->d_inode; | 692 | struct inode *inode = d_inode(old_dentry); |
693 | struct inode *old_dir = old_dentry->d_parent->d_inode; | 693 | struct inode *old_dir = d_inode(old_dentry->d_parent); |
694 | int err; | 694 | int err; |
695 | struct buffer_head *fe_bh = NULL; | 695 | struct buffer_head *fe_bh = NULL; |
696 | struct buffer_head *old_dir_bh = NULL; | 696 | struct buffer_head *old_dir_bh = NULL; |
@@ -879,7 +879,7 @@ static int ocfs2_unlink(struct inode *dir, | |||
879 | int status; | 879 | int status; |
880 | int child_locked = 0; | 880 | int child_locked = 0; |
881 | bool is_unlinkable = false; | 881 | bool is_unlinkable = false; |
882 | struct inode *inode = dentry->d_inode; | 882 | struct inode *inode = d_inode(dentry); |
883 | struct inode *orphan_dir = NULL; | 883 | struct inode *orphan_dir = NULL; |
884 | struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); | 884 | struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); |
885 | u64 blkno; | 885 | u64 blkno; |
@@ -898,7 +898,7 @@ static int ocfs2_unlink(struct inode *dir, | |||
898 | 898 | ||
899 | dquot_initialize(dir); | 899 | dquot_initialize(dir); |
900 | 900 | ||
901 | BUG_ON(dentry->d_parent->d_inode != dir); | 901 | BUG_ON(d_inode(dentry->d_parent) != dir); |
902 | 902 | ||
903 | if (inode == osb->root_inode) | 903 | if (inode == osb->root_inode) |
904 | return -EPERM; | 904 | return -EPERM; |
@@ -1209,8 +1209,8 @@ static int ocfs2_rename(struct inode *old_dir, | |||
1209 | { | 1209 | { |
1210 | int status = 0, rename_lock = 0, parents_locked = 0, target_exists = 0; | 1210 | int status = 0, rename_lock = 0, parents_locked = 0, target_exists = 0; |
1211 | int old_child_locked = 0, new_child_locked = 0, update_dot_dot = 0; | 1211 | int old_child_locked = 0, new_child_locked = 0, update_dot_dot = 0; |
1212 | struct inode *old_inode = old_dentry->d_inode; | 1212 | struct inode *old_inode = d_inode(old_dentry); |
1213 | struct inode *new_inode = new_dentry->d_inode; | 1213 | struct inode *new_inode = d_inode(new_dentry); |
1214 | struct inode *orphan_dir = NULL; | 1214 | struct inode *orphan_dir = NULL; |
1215 | struct ocfs2_dinode *newfe = NULL; | 1215 | struct ocfs2_dinode *newfe = NULL; |
1216 | char orphan_name[OCFS2_ORPHAN_NAMELEN + 1]; | 1216 | char orphan_name[OCFS2_ORPHAN_NAMELEN + 1]; |
@@ -1454,7 +1454,7 @@ static int ocfs2_rename(struct inode *old_dir, | |||
1454 | should_add_orphan = true; | 1454 | should_add_orphan = true; |
1455 | } | 1455 | } |
1456 | } else { | 1456 | } else { |
1457 | BUG_ON(new_dentry->d_parent->d_inode != new_dir); | 1457 | BUG_ON(d_inode(new_dentry->d_parent) != new_dir); |
1458 | 1458 | ||
1459 | status = ocfs2_check_dir_for_entry(new_dir, | 1459 | status = ocfs2_check_dir_for_entry(new_dir, |
1460 | new_dentry->d_name.name, | 1460 | new_dentry->d_name.name, |