aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-26 18:48:49 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-26 20:22:07 -0400
commit9ec3a646fe09970f801ab15e0f1694060b9f19af (patch)
tree697058ca7e1671eda180a3ccc62445686fbc1a31 /fs/ocfs2
parentc8b3fd0ce313443731e8fd6d5a541085eb465f99 (diff)
parent3cab989afd8d8d1bc3d99fef0e7ed87c31e7b647 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull fourth vfs update from Al Viro: "d_inode() annotations from David Howells (sat in for-next since before the beginning of merge window) + four assorted fixes" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: RCU pathwalk breakage when running into a symlink overmounting something fix I_DIO_WAKEUP definition direct-io: only inc/dec inode->i_dio_count for file systems fs/9p: fix readdir() VFS: assorted d_backing_inode() annotations VFS: fs/inode.c helpers: d_inode() annotations VFS: fs/cachefiles: d_backing_inode() annotations VFS: fs library helpers: d_inode() annotations VFS: assorted weird filesystems: d_inode() annotations VFS: normal filesystems (and lustre): d_inode() annotations VFS: security/: d_inode() annotations VFS: security/: d_backing_inode() annotations VFS: net/: d_inode() annotations VFS: net/unix: d_backing_inode() annotations VFS: kernel/: d_inode() annotations VFS: audit: d_backing_inode() annotations VFS: Fix up some ->d_inode accesses in the chelsio driver VFS: Cachefiles should perform fs modifications on the top layer only VFS: AF_UNIX sockets should call mknod on the top layer only
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/dcache.c14
-rw-r--r--fs/ocfs2/dir.h2
-rw-r--r--fs/ocfs2/dlmfs/dlmfs.c4
-rw-r--r--fs/ocfs2/export.c2
-rw-r--r--fs/ocfs2/file.c8
-rw-r--r--fs/ocfs2/inode.c2
-rw-r--r--fs/ocfs2/namei.c14
-rw-r--r--fs/ocfs2/refcounttree.c10
-rw-r--r--fs/ocfs2/xattr.c22
9 files changed, 39 insertions, 39 deletions
diff --git a/fs/ocfs2/dcache.c b/fs/ocfs2/dcache.c
index 4fda7a5f3088..290373024d9d 100644
--- a/fs/ocfs2/dcache.c
+++ b/fs/ocfs2/dcache.c
@@ -42,8 +42,8 @@
42void ocfs2_dentry_attach_gen(struct dentry *dentry) 42void ocfs2_dentry_attach_gen(struct dentry *dentry)
43{ 43{
44 unsigned long gen = 44 unsigned long gen =
45 OCFS2_I(dentry->d_parent->d_inode)->ip_dir_lock_gen; 45 OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen;
46 BUG_ON(dentry->d_inode); 46 BUG_ON(d_inode(dentry));
47 dentry->d_fsdata = (void *)gen; 47 dentry->d_fsdata = (void *)gen;
48} 48}
49 49
@@ -57,7 +57,7 @@ static int ocfs2_dentry_revalidate(struct dentry *dentry, unsigned int flags)
57 if (flags & LOOKUP_RCU) 57 if (flags & LOOKUP_RCU)
58 return -ECHILD; 58 return -ECHILD;
59 59
60 inode = dentry->d_inode; 60 inode = d_inode(dentry);
61 osb = OCFS2_SB(dentry->d_sb); 61 osb = OCFS2_SB(dentry->d_sb);
62 62
63 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len, 63 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len,
@@ -71,7 +71,7 @@ static int ocfs2_dentry_revalidate(struct dentry *dentry, unsigned int flags)
71 unsigned long gen = (unsigned long) dentry->d_fsdata; 71 unsigned long gen = (unsigned long) dentry->d_fsdata;
72 unsigned long pgen; 72 unsigned long pgen;
73 spin_lock(&dentry->d_lock); 73 spin_lock(&dentry->d_lock);
74 pgen = OCFS2_I(dentry->d_parent->d_inode)->ip_dir_lock_gen; 74 pgen = OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen;
75 spin_unlock(&dentry->d_lock); 75 spin_unlock(&dentry->d_lock);
76 trace_ocfs2_dentry_revalidate_negative(dentry->d_name.len, 76 trace_ocfs2_dentry_revalidate_negative(dentry->d_name.len,
77 dentry->d_name.name, 77 dentry->d_name.name,
@@ -146,7 +146,7 @@ static int ocfs2_match_dentry(struct dentry *dentry,
146 if (skip_unhashed && d_unhashed(dentry)) 146 if (skip_unhashed && d_unhashed(dentry))
147 return 0; 147 return 0;
148 148
149 parent = dentry->d_parent->d_inode; 149 parent = d_inode(dentry->d_parent);
150 /* Negative parent dentry? */ 150 /* Negative parent dentry? */
151 if (!parent) 151 if (!parent)
152 return 0; 152 return 0;
@@ -243,7 +243,7 @@ int ocfs2_dentry_attach_lock(struct dentry *dentry,
243 if (!inode) 243 if (!inode)
244 return 0; 244 return 0;
245 245
246 if (!dentry->d_inode && dentry->d_fsdata) { 246 if (d_really_is_negative(dentry) && dentry->d_fsdata) {
247 /* Converting a negative dentry to positive 247 /* Converting a negative dentry to positive
248 Clear dentry->d_fsdata */ 248 Clear dentry->d_fsdata */
249 dentry->d_fsdata = dl = NULL; 249 dentry->d_fsdata = dl = NULL;
@@ -446,7 +446,7 @@ void ocfs2_dentry_move(struct dentry *dentry, struct dentry *target,
446{ 446{
447 int ret; 447 int ret;
448 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb); 448 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb);
449 struct inode *inode = dentry->d_inode; 449 struct inode *inode = d_inode(dentry);
450 450
451 /* 451 /*
452 * Move within the same directory, so the actual lock info won't 452 * Move within the same directory, so the actual lock info won't
diff --git a/fs/ocfs2/dir.h b/fs/ocfs2/dir.h
index f0344b75b14d..3d8639f38973 100644
--- a/fs/ocfs2/dir.h
+++ b/fs/ocfs2/dir.h
@@ -72,7 +72,7 @@ static inline int ocfs2_add_entry(handle_t *handle,
72 struct buffer_head *parent_fe_bh, 72 struct buffer_head *parent_fe_bh,
73 struct ocfs2_dir_lookup_result *lookup) 73 struct ocfs2_dir_lookup_result *lookup)
74{ 74{
75 return __ocfs2_add_entry(handle, dentry->d_parent->d_inode, 75 return __ocfs2_add_entry(handle, d_inode(dentry->d_parent),
76 dentry->d_name.name, dentry->d_name.len, 76 dentry->d_name.name, dentry->d_name.len,
77 inode, blkno, parent_fe_bh, lookup); 77 inode, blkno, parent_fe_bh, lookup);
78} 78}
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c
index 061ba6a91bf2..b5cf27dcb18a 100644
--- a/fs/ocfs2/dlmfs/dlmfs.c
+++ b/fs/ocfs2/dlmfs/dlmfs.c
@@ -208,7 +208,7 @@ static int dlmfs_file_release(struct inode *inode,
208static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr) 208static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr)
209{ 209{
210 int error; 210 int error;
211 struct inode *inode = dentry->d_inode; 211 struct inode *inode = d_inode(dentry);
212 212
213 attr->ia_valid &= ~ATTR_SIZE; 213 attr->ia_valid &= ~ATTR_SIZE;
214 error = inode_change_ok(inode, attr); 214 error = inode_change_ok(inode, attr);
@@ -549,7 +549,7 @@ static int dlmfs_unlink(struct inode *dir,
549 struct dentry *dentry) 549 struct dentry *dentry)
550{ 550{
551 int status; 551 int status;
552 struct inode *inode = dentry->d_inode; 552 struct inode *inode = d_inode(dentry);
553 553
554 mlog(0, "unlink inode %lu\n", inode->i_ino); 554 mlog(0, "unlink inode %lu\n", inode->i_ino);
555 555
diff --git a/fs/ocfs2/export.c b/fs/ocfs2/export.c
index 540dc4bdd042..827fc9809bc2 100644
--- a/fs/ocfs2/export.c
+++ b/fs/ocfs2/export.c
@@ -147,7 +147,7 @@ static struct dentry *ocfs2_get_parent(struct dentry *child)
147 int status; 147 int status;
148 u64 blkno; 148 u64 blkno;
149 struct dentry *parent; 149 struct dentry *parent;
150 struct inode *dir = child->d_inode; 150 struct inode *dir = d_inode(child);
151 151
152 trace_ocfs2_get_parent(child, child->d_name.len, child->d_name.name, 152 trace_ocfs2_get_parent(child, child->d_name.len, child->d_name.name,
153 (unsigned long long)OCFS2_I(dir)->ip_blkno); 153 (unsigned long long)OCFS2_I(dir)->ip_blkno);
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 913fc250d85a..d8b670cbd909 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -1126,7 +1126,7 @@ out:
1126int ocfs2_setattr(struct dentry *dentry, struct iattr *attr) 1126int ocfs2_setattr(struct dentry *dentry, struct iattr *attr)
1127{ 1127{
1128 int status = 0, size_change; 1128 int status = 0, size_change;
1129 struct inode *inode = dentry->d_inode; 1129 struct inode *inode = d_inode(dentry);
1130 struct super_block *sb = inode->i_sb; 1130 struct super_block *sb = inode->i_sb;
1131 struct ocfs2_super *osb = OCFS2_SB(sb); 1131 struct ocfs2_super *osb = OCFS2_SB(sb);
1132 struct buffer_head *bh = NULL; 1132 struct buffer_head *bh = NULL;
@@ -1275,8 +1275,8 @@ int ocfs2_getattr(struct vfsmount *mnt,
1275 struct dentry *dentry, 1275 struct dentry *dentry,
1276 struct kstat *stat) 1276 struct kstat *stat)
1277{ 1277{
1278 struct inode *inode = dentry->d_inode; 1278 struct inode *inode = d_inode(dentry);
1279 struct super_block *sb = dentry->d_inode->i_sb; 1279 struct super_block *sb = d_inode(dentry)->i_sb;
1280 struct ocfs2_super *osb = sb->s_fs_info; 1280 struct ocfs2_super *osb = sb->s_fs_info;
1281 int err; 1281 int err;
1282 1282
@@ -2114,7 +2114,7 @@ static int ocfs2_prepare_inode_for_write(struct file *file,
2114{ 2114{
2115 int ret = 0, meta_level = 0; 2115 int ret = 0, meta_level = 0;
2116 struct dentry *dentry = file->f_path.dentry; 2116 struct dentry *dentry = file->f_path.dentry;
2117 struct inode *inode = dentry->d_inode; 2117 struct inode *inode = d_inode(dentry);
2118 loff_t end; 2118 loff_t end;
2119 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 2119 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2120 int full_coherency = !(osb->s_mount_opt & 2120 int full_coherency = !(osb->s_mount_opt &
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c
index be71ca0937f7..b254416dc8d9 100644
--- a/fs/ocfs2/inode.c
+++ b/fs/ocfs2/inode.c
@@ -1209,7 +1209,7 @@ int ocfs2_drop_inode(struct inode *inode)
1209 */ 1209 */
1210int ocfs2_inode_revalidate(struct dentry *dentry) 1210int ocfs2_inode_revalidate(struct dentry *dentry)
1211{ 1211{
1212 struct inode *inode = dentry->d_inode; 1212 struct inode *inode = d_inode(dentry);
1213 int status = 0; 1213 int status = 0;
1214 1214
1215 trace_ocfs2_inode_revalidate(inode, 1215 trace_ocfs2_inode_revalidate(inode,
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 09f90cbf0e24..176fe6afd94e 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,
diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c
index df3a500789c7..d8c6af101f3f 100644
--- a/fs/ocfs2/refcounttree.c
+++ b/fs/ocfs2/refcounttree.c
@@ -4194,7 +4194,7 @@ static int __ocfs2_reflink(struct dentry *old_dentry,
4194 bool preserve) 4194 bool preserve)
4195{ 4195{
4196 int ret; 4196 int ret;
4197 struct inode *inode = old_dentry->d_inode; 4197 struct inode *inode = d_inode(old_dentry);
4198 struct buffer_head *new_bh = NULL; 4198 struct buffer_head *new_bh = NULL;
4199 4199
4200 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) { 4200 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) {
@@ -4263,7 +4263,7 @@ static int ocfs2_reflink(struct dentry *old_dentry, struct inode *dir,
4263 struct dentry *new_dentry, bool preserve) 4263 struct dentry *new_dentry, bool preserve)
4264{ 4264{
4265 int error; 4265 int error;
4266 struct inode *inode = old_dentry->d_inode; 4266 struct inode *inode = d_inode(old_dentry);
4267 struct buffer_head *old_bh = NULL; 4267 struct buffer_head *old_bh = NULL;
4268 struct inode *new_orphan_inode = NULL; 4268 struct inode *new_orphan_inode = NULL;
4269 struct posix_acl *default_acl, *acl; 4269 struct posix_acl *default_acl, *acl;
@@ -4357,7 +4357,7 @@ out:
4357/* copied from may_create in VFS. */ 4357/* copied from may_create in VFS. */
4358static inline int ocfs2_may_create(struct inode *dir, struct dentry *child) 4358static inline int ocfs2_may_create(struct inode *dir, struct dentry *child)
4359{ 4359{
4360 if (child->d_inode) 4360 if (d_really_is_positive(child))
4361 return -EEXIST; 4361 return -EEXIST;
4362 if (IS_DEADDIR(dir)) 4362 if (IS_DEADDIR(dir))
4363 return -ENOENT; 4363 return -ENOENT;
@@ -4375,7 +4375,7 @@ static inline int ocfs2_may_create(struct inode *dir, struct dentry *child)
4375static int ocfs2_vfs_reflink(struct dentry *old_dentry, struct inode *dir, 4375static int ocfs2_vfs_reflink(struct dentry *old_dentry, struct inode *dir,
4376 struct dentry *new_dentry, bool preserve) 4376 struct dentry *new_dentry, bool preserve)
4377{ 4377{
4378 struct inode *inode = old_dentry->d_inode; 4378 struct inode *inode = d_inode(old_dentry);
4379 int error; 4379 int error;
4380 4380
4381 if (!inode) 4381 if (!inode)
@@ -4463,7 +4463,7 @@ int ocfs2_reflink_ioctl(struct inode *inode,
4463 } 4463 }
4464 4464
4465 error = ocfs2_vfs_reflink(old_path.dentry, 4465 error = ocfs2_vfs_reflink(old_path.dentry,
4466 new_path.dentry->d_inode, 4466 d_inode(new_path.dentry),
4467 new_dentry, preserve); 4467 new_dentry, preserve);
4468out_dput: 4468out_dput:
4469 done_path_create(&new_path, new_dentry); 4469 done_path_create(&new_path, new_dentry);
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c
index 4ca7533be479..d03bfbf3d27d 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -1020,7 +1020,7 @@ ssize_t ocfs2_listxattr(struct dentry *dentry,
1020 int ret = 0, i_ret = 0, b_ret = 0; 1020 int ret = 0, i_ret = 0, b_ret = 0;
1021 struct buffer_head *di_bh = NULL; 1021 struct buffer_head *di_bh = NULL;
1022 struct ocfs2_dinode *di = NULL; 1022 struct ocfs2_dinode *di = NULL;
1023 struct ocfs2_inode_info *oi = OCFS2_I(dentry->d_inode); 1023 struct ocfs2_inode_info *oi = OCFS2_I(d_inode(dentry));
1024 1024
1025 if (!ocfs2_supports_xattr(OCFS2_SB(dentry->d_sb))) 1025 if (!ocfs2_supports_xattr(OCFS2_SB(dentry->d_sb)))
1026 return -EOPNOTSUPP; 1026 return -EOPNOTSUPP;
@@ -1028,7 +1028,7 @@ ssize_t ocfs2_listxattr(struct dentry *dentry,
1028 if (!(oi->ip_dyn_features & OCFS2_HAS_XATTR_FL)) 1028 if (!(oi->ip_dyn_features & OCFS2_HAS_XATTR_FL))
1029 return ret; 1029 return ret;
1030 1030
1031 ret = ocfs2_inode_lock(dentry->d_inode, &di_bh, 0); 1031 ret = ocfs2_inode_lock(d_inode(dentry), &di_bh, 0);
1032 if (ret < 0) { 1032 if (ret < 0) {
1033 mlog_errno(ret); 1033 mlog_errno(ret);
1034 return ret; 1034 return ret;
@@ -1037,7 +1037,7 @@ ssize_t ocfs2_listxattr(struct dentry *dentry,
1037 di = (struct ocfs2_dinode *)di_bh->b_data; 1037 di = (struct ocfs2_dinode *)di_bh->b_data;
1038 1038
1039 down_read(&oi->ip_xattr_sem); 1039 down_read(&oi->ip_xattr_sem);
1040 i_ret = ocfs2_xattr_ibody_list(dentry->d_inode, di, buffer, size); 1040 i_ret = ocfs2_xattr_ibody_list(d_inode(dentry), di, buffer, size);
1041 if (i_ret < 0) 1041 if (i_ret < 0)
1042 b_ret = 0; 1042 b_ret = 0;
1043 else { 1043 else {
@@ -1045,13 +1045,13 @@ ssize_t ocfs2_listxattr(struct dentry *dentry,
1045 buffer += i_ret; 1045 buffer += i_ret;
1046 size -= i_ret; 1046 size -= i_ret;
1047 } 1047 }
1048 b_ret = ocfs2_xattr_block_list(dentry->d_inode, di, 1048 b_ret = ocfs2_xattr_block_list(d_inode(dentry), di,
1049 buffer, size); 1049 buffer, size);
1050 if (b_ret < 0) 1050 if (b_ret < 0)
1051 i_ret = 0; 1051 i_ret = 0;
1052 } 1052 }
1053 up_read(&oi->ip_xattr_sem); 1053 up_read(&oi->ip_xattr_sem);
1054 ocfs2_inode_unlock(dentry->d_inode, 0); 1054 ocfs2_inode_unlock(d_inode(dentry), 0);
1055 1055
1056 brelse(di_bh); 1056 brelse(di_bh);
1057 1057
@@ -7257,7 +7257,7 @@ static int ocfs2_xattr_security_get(struct dentry *dentry, const char *name,
7257{ 7257{
7258 if (strcmp(name, "") == 0) 7258 if (strcmp(name, "") == 0)
7259 return -EINVAL; 7259 return -EINVAL;
7260 return ocfs2_xattr_get(dentry->d_inode, OCFS2_XATTR_INDEX_SECURITY, 7260 return ocfs2_xattr_get(d_inode(dentry), OCFS2_XATTR_INDEX_SECURITY,
7261 name, buffer, size); 7261 name, buffer, size);
7262} 7262}
7263 7263
@@ -7267,7 +7267,7 @@ static int ocfs2_xattr_security_set(struct dentry *dentry, const char *name,
7267 if (strcmp(name, "") == 0) 7267 if (strcmp(name, "") == 0)
7268 return -EINVAL; 7268 return -EINVAL;
7269 7269
7270 return ocfs2_xattr_set(dentry->d_inode, OCFS2_XATTR_INDEX_SECURITY, 7270 return ocfs2_xattr_set(d_inode(dentry), OCFS2_XATTR_INDEX_SECURITY,
7271 name, value, size, flags); 7271 name, value, size, flags);
7272} 7272}
7273 7273
@@ -7347,7 +7347,7 @@ static int ocfs2_xattr_trusted_get(struct dentry *dentry, const char *name,
7347{ 7347{
7348 if (strcmp(name, "") == 0) 7348 if (strcmp(name, "") == 0)
7349 return -EINVAL; 7349 return -EINVAL;
7350 return ocfs2_xattr_get(dentry->d_inode, OCFS2_XATTR_INDEX_TRUSTED, 7350 return ocfs2_xattr_get(d_inode(dentry), OCFS2_XATTR_INDEX_TRUSTED,
7351 name, buffer, size); 7351 name, buffer, size);
7352} 7352}
7353 7353
@@ -7357,7 +7357,7 @@ static int ocfs2_xattr_trusted_set(struct dentry *dentry, const char *name,
7357 if (strcmp(name, "") == 0) 7357 if (strcmp(name, "") == 0)
7358 return -EINVAL; 7358 return -EINVAL;
7359 7359
7360 return ocfs2_xattr_set(dentry->d_inode, OCFS2_XATTR_INDEX_TRUSTED, 7360 return ocfs2_xattr_set(d_inode(dentry), OCFS2_XATTR_INDEX_TRUSTED,
7361 name, value, size, flags); 7361 name, value, size, flags);
7362} 7362}
7363 7363
@@ -7399,7 +7399,7 @@ static int ocfs2_xattr_user_get(struct dentry *dentry, const char *name,
7399 return -EINVAL; 7399 return -EINVAL;
7400 if (osb->s_mount_opt & OCFS2_MOUNT_NOUSERXATTR) 7400 if (osb->s_mount_opt & OCFS2_MOUNT_NOUSERXATTR)
7401 return -EOPNOTSUPP; 7401 return -EOPNOTSUPP;
7402 return ocfs2_xattr_get(dentry->d_inode, OCFS2_XATTR_INDEX_USER, name, 7402 return ocfs2_xattr_get(d_inode(dentry), OCFS2_XATTR_INDEX_USER, name,
7403 buffer, size); 7403 buffer, size);
7404} 7404}
7405 7405
@@ -7413,7 +7413,7 @@ static int ocfs2_xattr_user_set(struct dentry *dentry, const char *name,
7413 if (osb->s_mount_opt & OCFS2_MOUNT_NOUSERXATTR) 7413 if (osb->s_mount_opt & OCFS2_MOUNT_NOUSERXATTR)
7414 return -EOPNOTSUPP; 7414 return -EOPNOTSUPP;
7415 7415
7416 return ocfs2_xattr_set(dentry->d_inode, OCFS2_XATTR_INDEX_USER, 7416 return ocfs2_xattr_set(d_inode(dentry), OCFS2_XATTR_INDEX_USER,
7417 name, value, size, flags); 7417 name, value, size, flags);
7418} 7418}
7419 7419