aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf
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/udf
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/udf')
-rw-r--r--fs/udf/file.c2
-rw-r--r--fs/udf/namei.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/fs/udf/file.c b/fs/udf/file.c
index 3de2edafff73..a84cdd2ef618 100644
--- a/fs/udf/file.c
+++ b/fs/udf/file.c
@@ -250,7 +250,7 @@ const struct file_operations udf_file_operations = {
250 250
251static int udf_setattr(struct dentry *dentry, struct iattr *attr) 251static int udf_setattr(struct dentry *dentry, struct iattr *attr)
252{ 252{
253 struct inode *inode = dentry->d_inode; 253 struct inode *inode = d_inode(dentry);
254 int error; 254 int error;
255 255
256 error = inode_change_ok(inode, attr); 256 error = inode_change_ok(inode, attr);
diff --git a/fs/udf/namei.c b/fs/udf/namei.c
index 33b246b82c98..b159b769bf51 100644
--- a/fs/udf/namei.c
+++ b/fs/udf/namei.c
@@ -552,7 +552,7 @@ static int udf_delete_entry(struct inode *inode, struct fileIdentDesc *fi,
552static int udf_add_nondir(struct dentry *dentry, struct inode *inode) 552static int udf_add_nondir(struct dentry *dentry, struct inode *inode)
553{ 553{
554 struct udf_inode_info *iinfo = UDF_I(inode); 554 struct udf_inode_info *iinfo = UDF_I(inode);
555 struct inode *dir = dentry->d_parent->d_inode; 555 struct inode *dir = d_inode(dentry->d_parent);
556 struct udf_fileident_bh fibh; 556 struct udf_fileident_bh fibh;
557 struct fileIdentDesc cfi, *fi; 557 struct fileIdentDesc cfi, *fi;
558 int err; 558 int err;
@@ -767,7 +767,7 @@ static int empty_dir(struct inode *dir)
767static int udf_rmdir(struct inode *dir, struct dentry *dentry) 767static int udf_rmdir(struct inode *dir, struct dentry *dentry)
768{ 768{
769 int retval; 769 int retval;
770 struct inode *inode = dentry->d_inode; 770 struct inode *inode = d_inode(dentry);
771 struct udf_fileident_bh fibh; 771 struct udf_fileident_bh fibh;
772 struct fileIdentDesc *fi, cfi; 772 struct fileIdentDesc *fi, cfi;
773 struct kernel_lb_addr tloc; 773 struct kernel_lb_addr tloc;
@@ -809,7 +809,7 @@ out:
809static int udf_unlink(struct inode *dir, struct dentry *dentry) 809static int udf_unlink(struct inode *dir, struct dentry *dentry)
810{ 810{
811 int retval; 811 int retval;
812 struct inode *inode = dentry->d_inode; 812 struct inode *inode = d_inode(dentry);
813 struct udf_fileident_bh fibh; 813 struct udf_fileident_bh fibh;
814 struct fileIdentDesc *fi; 814 struct fileIdentDesc *fi;
815 struct fileIdentDesc cfi; 815 struct fileIdentDesc cfi;
@@ -999,7 +999,7 @@ out_no_entry:
999static int udf_link(struct dentry *old_dentry, struct inode *dir, 999static int udf_link(struct dentry *old_dentry, struct inode *dir,
1000 struct dentry *dentry) 1000 struct dentry *dentry)
1001{ 1001{
1002 struct inode *inode = old_dentry->d_inode; 1002 struct inode *inode = d_inode(old_dentry);
1003 struct udf_fileident_bh fibh; 1003 struct udf_fileident_bh fibh;
1004 struct fileIdentDesc cfi, *fi; 1004 struct fileIdentDesc cfi, *fi;
1005 int err; 1005 int err;
@@ -1036,8 +1036,8 @@ static int udf_link(struct dentry *old_dentry, struct inode *dir,
1036static int udf_rename(struct inode *old_dir, struct dentry *old_dentry, 1036static int udf_rename(struct inode *old_dir, struct dentry *old_dentry,
1037 struct inode *new_dir, struct dentry *new_dentry) 1037 struct inode *new_dir, struct dentry *new_dentry)
1038{ 1038{
1039 struct inode *old_inode = old_dentry->d_inode; 1039 struct inode *old_inode = d_inode(old_dentry);
1040 struct inode *new_inode = new_dentry->d_inode; 1040 struct inode *new_inode = d_inode(new_dentry);
1041 struct udf_fileident_bh ofibh, nfibh; 1041 struct udf_fileident_bh ofibh, nfibh;
1042 struct fileIdentDesc *ofi = NULL, *nfi = NULL, *dir_fi = NULL; 1042 struct fileIdentDesc *ofi = NULL, *nfi = NULL, *dir_fi = NULL;
1043 struct fileIdentDesc ocfi, ncfi; 1043 struct fileIdentDesc ocfi, ncfi;
@@ -1175,7 +1175,7 @@ static struct dentry *udf_get_parent(struct dentry *child)
1175 struct fileIdentDesc cfi; 1175 struct fileIdentDesc cfi;
1176 struct udf_fileident_bh fibh; 1176 struct udf_fileident_bh fibh;
1177 1177
1178 if (!udf_find_entry(child->d_inode, &dotdot, &fibh, &cfi)) 1178 if (!udf_find_entry(d_inode(child), &dotdot, &fibh, &cfi))
1179 return ERR_PTR(-EACCES); 1179 return ERR_PTR(-EACCES);
1180 1180
1181 if (fibh.sbh != fibh.ebh) 1181 if (fibh.sbh != fibh.ebh)
@@ -1183,7 +1183,7 @@ static struct dentry *udf_get_parent(struct dentry *child)
1183 brelse(fibh.sbh); 1183 brelse(fibh.sbh);
1184 1184
1185 tloc = lelb_to_cpu(cfi.icb.extLocation); 1185 tloc = lelb_to_cpu(cfi.icb.extLocation);
1186 inode = udf_iget(child->d_inode->i_sb, &tloc); 1186 inode = udf_iget(d_inode(child)->i_sb, &tloc);
1187 if (IS_ERR(inode)) 1187 if (IS_ERR(inode))
1188 return ERR_CAST(inode); 1188 return ERR_CAST(inode);
1189 1189