diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-26 18:48:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-26 20:22:07 -0400 |
commit | 9ec3a646fe09970f801ab15e0f1694060b9f19af (patch) | |
tree | 697058ca7e1671eda180a3ccc62445686fbc1a31 /fs/gfs2 | |
parent | c8b3fd0ce313443731e8fd6d5a541085eb465f99 (diff) | |
parent | 3cab989afd8d8d1bc3d99fef0e7ed87c31e7b647 (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/gfs2')
-rw-r--r-- | fs/gfs2/dentry.c | 12 | ||||
-rw-r--r-- | fs/gfs2/export.c | 8 | ||||
-rw-r--r-- | fs/gfs2/inode.c | 34 | ||||
-rw-r--r-- | fs/gfs2/ops_fstype.c | 8 | ||||
-rw-r--r-- | fs/gfs2/super.c | 2 | ||||
-rw-r--r-- | fs/gfs2/xattr.c | 6 |
6 files changed, 35 insertions, 35 deletions
diff --git a/fs/gfs2/dentry.c b/fs/gfs2/dentry.c index 589f4ea9381c..30822b148f3e 100644 --- a/fs/gfs2/dentry.c +++ b/fs/gfs2/dentry.c | |||
@@ -48,9 +48,9 @@ static int gfs2_drevalidate(struct dentry *dentry, unsigned int flags) | |||
48 | return -ECHILD; | 48 | return -ECHILD; |
49 | 49 | ||
50 | parent = dget_parent(dentry); | 50 | parent = dget_parent(dentry); |
51 | sdp = GFS2_SB(parent->d_inode); | 51 | sdp = GFS2_SB(d_inode(parent)); |
52 | dip = GFS2_I(parent->d_inode); | 52 | dip = GFS2_I(d_inode(parent)); |
53 | inode = dentry->d_inode; | 53 | inode = d_inode(dentry); |
54 | 54 | ||
55 | if (inode) { | 55 | if (inode) { |
56 | if (is_bad_inode(inode)) | 56 | if (is_bad_inode(inode)) |
@@ -68,7 +68,7 @@ static int gfs2_drevalidate(struct dentry *dentry, unsigned int flags) | |||
68 | goto fail; | 68 | goto fail; |
69 | } | 69 | } |
70 | 70 | ||
71 | error = gfs2_dir_check(parent->d_inode, &dentry->d_name, ip); | 71 | error = gfs2_dir_check(d_inode(parent), &dentry->d_name, ip); |
72 | switch (error) { | 72 | switch (error) { |
73 | case 0: | 73 | case 0: |
74 | if (!inode) | 74 | if (!inode) |
@@ -113,10 +113,10 @@ static int gfs2_dentry_delete(const struct dentry *dentry) | |||
113 | { | 113 | { |
114 | struct gfs2_inode *ginode; | 114 | struct gfs2_inode *ginode; |
115 | 115 | ||
116 | if (!dentry->d_inode) | 116 | if (d_really_is_negative(dentry)) |
117 | return 0; | 117 | return 0; |
118 | 118 | ||
119 | ginode = GFS2_I(dentry->d_inode); | 119 | ginode = GFS2_I(d_inode(dentry)); |
120 | if (!ginode->i_iopen_gh.gh_gl) | 120 | if (!ginode->i_iopen_gh.gh_gl) |
121 | return 0; | 121 | return 0; |
122 | 122 | ||
diff --git a/fs/gfs2/export.c b/fs/gfs2/export.c index c41d255b6a7b..5d15e9498b48 100644 --- a/fs/gfs2/export.c +++ b/fs/gfs2/export.c | |||
@@ -49,7 +49,7 @@ static int gfs2_encode_fh(struct inode *inode, __u32 *p, int *len, | |||
49 | fh[3] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); | 49 | fh[3] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); |
50 | *len = GFS2_SMALL_FH_SIZE; | 50 | *len = GFS2_SMALL_FH_SIZE; |
51 | 51 | ||
52 | if (!parent || inode == sb->s_root->d_inode) | 52 | if (!parent || inode == d_inode(sb->s_root)) |
53 | return *len; | 53 | return *len; |
54 | 54 | ||
55 | ip = GFS2_I(parent); | 55 | ip = GFS2_I(parent); |
@@ -88,8 +88,8 @@ static int get_name_filldir(struct dir_context *ctx, const char *name, | |||
88 | static int gfs2_get_name(struct dentry *parent, char *name, | 88 | static int gfs2_get_name(struct dentry *parent, char *name, |
89 | struct dentry *child) | 89 | struct dentry *child) |
90 | { | 90 | { |
91 | struct inode *dir = parent->d_inode; | 91 | struct inode *dir = d_inode(parent); |
92 | struct inode *inode = child->d_inode; | 92 | struct inode *inode = d_inode(child); |
93 | struct gfs2_inode *dip, *ip; | 93 | struct gfs2_inode *dip, *ip; |
94 | struct get_name_filldir gnfd = { | 94 | struct get_name_filldir gnfd = { |
95 | .ctx.actor = get_name_filldir, | 95 | .ctx.actor = get_name_filldir, |
@@ -128,7 +128,7 @@ static int gfs2_get_name(struct dentry *parent, char *name, | |||
128 | 128 | ||
129 | static struct dentry *gfs2_get_parent(struct dentry *child) | 129 | static struct dentry *gfs2_get_parent(struct dentry *child) |
130 | { | 130 | { |
131 | return d_obtain_alias(gfs2_lookupi(child->d_inode, &gfs2_qdotdot, 1)); | 131 | return d_obtain_alias(gfs2_lookupi(d_inode(child), &gfs2_qdotdot, 1)); |
132 | } | 132 | } |
133 | 133 | ||
134 | static struct dentry *gfs2_get_dentry(struct super_block *sb, | 134 | static struct dentry *gfs2_get_dentry(struct super_block *sb, |
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 08bc84d7e768..1b3ca7a2e3fc 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -295,7 +295,7 @@ struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, | |||
295 | 295 | ||
296 | if ((name->len == 1 && memcmp(name->name, ".", 1) == 0) || | 296 | if ((name->len == 1 && memcmp(name->name, ".", 1) == 0) || |
297 | (name->len == 2 && memcmp(name->name, "..", 2) == 0 && | 297 | (name->len == 2 && memcmp(name->name, "..", 2) == 0 && |
298 | dir == sb->s_root->d_inode)) { | 298 | dir == d_inode(sb->s_root))) { |
299 | igrab(dir); | 299 | igrab(dir); |
300 | return dir; | 300 | return dir; |
301 | } | 301 | } |
@@ -687,7 +687,7 @@ static int gfs2_create_inode(struct inode *dir, struct dentry *dentry, | |||
687 | } | 687 | } |
688 | gfs2_set_inode_flags(inode); | 688 | gfs2_set_inode_flags(inode); |
689 | 689 | ||
690 | if ((GFS2_I(sdp->sd_root_dir->d_inode) == dip) || | 690 | if ((GFS2_I(d_inode(sdp->sd_root_dir)) == dip) || |
691 | (dip->i_diskflags & GFS2_DIF_TOPDIR)) | 691 | (dip->i_diskflags & GFS2_DIF_TOPDIR)) |
692 | aflags |= GFS2_AF_ORLOV; | 692 | aflags |= GFS2_AF_ORLOV; |
693 | 693 | ||
@@ -888,7 +888,7 @@ static int gfs2_link(struct dentry *old_dentry, struct inode *dir, | |||
888 | { | 888 | { |
889 | struct gfs2_inode *dip = GFS2_I(dir); | 889 | struct gfs2_inode *dip = GFS2_I(dir); |
890 | struct gfs2_sbd *sdp = GFS2_SB(dir); | 890 | struct gfs2_sbd *sdp = GFS2_SB(dir); |
891 | struct inode *inode = old_dentry->d_inode; | 891 | struct inode *inode = d_inode(old_dentry); |
892 | struct gfs2_inode *ip = GFS2_I(inode); | 892 | struct gfs2_inode *ip = GFS2_I(inode); |
893 | struct gfs2_holder ghs[2]; | 893 | struct gfs2_holder ghs[2]; |
894 | struct buffer_head *dibh; | 894 | struct buffer_head *dibh; |
@@ -1055,7 +1055,7 @@ static int gfs2_unlink_ok(struct gfs2_inode *dip, const struct qstr *name, | |||
1055 | static int gfs2_unlink_inode(struct gfs2_inode *dip, | 1055 | static int gfs2_unlink_inode(struct gfs2_inode *dip, |
1056 | const struct dentry *dentry) | 1056 | const struct dentry *dentry) |
1057 | { | 1057 | { |
1058 | struct inode *inode = dentry->d_inode; | 1058 | struct inode *inode = d_inode(dentry); |
1059 | struct gfs2_inode *ip = GFS2_I(inode); | 1059 | struct gfs2_inode *ip = GFS2_I(inode); |
1060 | int error; | 1060 | int error; |
1061 | 1061 | ||
@@ -1091,7 +1091,7 @@ static int gfs2_unlink(struct inode *dir, struct dentry *dentry) | |||
1091 | { | 1091 | { |
1092 | struct gfs2_inode *dip = GFS2_I(dir); | 1092 | struct gfs2_inode *dip = GFS2_I(dir); |
1093 | struct gfs2_sbd *sdp = GFS2_SB(dir); | 1093 | struct gfs2_sbd *sdp = GFS2_SB(dir); |
1094 | struct inode *inode = dentry->d_inode; | 1094 | struct inode *inode = d_inode(dentry); |
1095 | struct gfs2_inode *ip = GFS2_I(inode); | 1095 | struct gfs2_inode *ip = GFS2_I(inode); |
1096 | struct gfs2_holder ghs[3]; | 1096 | struct gfs2_holder ghs[3]; |
1097 | struct gfs2_rgrpd *rgd; | 1097 | struct gfs2_rgrpd *rgd; |
@@ -1241,7 +1241,7 @@ static int gfs2_atomic_open(struct inode *dir, struct dentry *dentry, | |||
1241 | return PTR_ERR(d); | 1241 | return PTR_ERR(d); |
1242 | if (d != NULL) | 1242 | if (d != NULL) |
1243 | dentry = d; | 1243 | dentry = d; |
1244 | if (dentry->d_inode) { | 1244 | if (d_really_is_positive(dentry)) { |
1245 | if (!(*opened & FILE_OPENED)) | 1245 | if (!(*opened & FILE_OPENED)) |
1246 | return finish_no_open(file, d); | 1246 | return finish_no_open(file, d); |
1247 | dput(d); | 1247 | dput(d); |
@@ -1282,7 +1282,7 @@ static int gfs2_ok_to_move(struct gfs2_inode *this, struct gfs2_inode *to) | |||
1282 | error = -EINVAL; | 1282 | error = -EINVAL; |
1283 | break; | 1283 | break; |
1284 | } | 1284 | } |
1285 | if (dir == sb->s_root->d_inode) { | 1285 | if (dir == d_inode(sb->s_root)) { |
1286 | error = 0; | 1286 | error = 0; |
1287 | break; | 1287 | break; |
1288 | } | 1288 | } |
@@ -1321,7 +1321,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry, | |||
1321 | { | 1321 | { |
1322 | struct gfs2_inode *odip = GFS2_I(odir); | 1322 | struct gfs2_inode *odip = GFS2_I(odir); |
1323 | struct gfs2_inode *ndip = GFS2_I(ndir); | 1323 | struct gfs2_inode *ndip = GFS2_I(ndir); |
1324 | struct gfs2_inode *ip = GFS2_I(odentry->d_inode); | 1324 | struct gfs2_inode *ip = GFS2_I(d_inode(odentry)); |
1325 | struct gfs2_inode *nip = NULL; | 1325 | struct gfs2_inode *nip = NULL; |
1326 | struct gfs2_sbd *sdp = GFS2_SB(odir); | 1326 | struct gfs2_sbd *sdp = GFS2_SB(odir); |
1327 | struct gfs2_holder ghs[5], r_gh = { .gh_gl = NULL, }; | 1327 | struct gfs2_holder ghs[5], r_gh = { .gh_gl = NULL, }; |
@@ -1332,8 +1332,8 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry, | |||
1332 | unsigned int x; | 1332 | unsigned int x; |
1333 | int error; | 1333 | int error; |
1334 | 1334 | ||
1335 | if (ndentry->d_inode) { | 1335 | if (d_really_is_positive(ndentry)) { |
1336 | nip = GFS2_I(ndentry->d_inode); | 1336 | nip = GFS2_I(d_inode(ndentry)); |
1337 | if (ip == nip) | 1337 | if (ip == nip) |
1338 | return 0; | 1338 | return 0; |
1339 | } | 1339 | } |
@@ -1457,7 +1457,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry, | |||
1457 | /* Check out the dir to be renamed */ | 1457 | /* Check out the dir to be renamed */ |
1458 | 1458 | ||
1459 | if (dir_rename) { | 1459 | if (dir_rename) { |
1460 | error = gfs2_permission(odentry->d_inode, MAY_WRITE); | 1460 | error = gfs2_permission(d_inode(odentry), MAY_WRITE); |
1461 | if (error) | 1461 | if (error) |
1462 | goto out_gunlock; | 1462 | goto out_gunlock; |
1463 | } | 1463 | } |
@@ -1550,7 +1550,7 @@ out: | |||
1550 | 1550 | ||
1551 | static void *gfs2_follow_link(struct dentry *dentry, struct nameidata *nd) | 1551 | static void *gfs2_follow_link(struct dentry *dentry, struct nameidata *nd) |
1552 | { | 1552 | { |
1553 | struct gfs2_inode *ip = GFS2_I(dentry->d_inode); | 1553 | struct gfs2_inode *ip = GFS2_I(d_inode(dentry)); |
1554 | struct gfs2_holder i_gh; | 1554 | struct gfs2_holder i_gh; |
1555 | struct buffer_head *dibh; | 1555 | struct buffer_head *dibh; |
1556 | unsigned int size; | 1556 | unsigned int size; |
@@ -1742,7 +1742,7 @@ out: | |||
1742 | 1742 | ||
1743 | static int gfs2_setattr(struct dentry *dentry, struct iattr *attr) | 1743 | static int gfs2_setattr(struct dentry *dentry, struct iattr *attr) |
1744 | { | 1744 | { |
1745 | struct inode *inode = dentry->d_inode; | 1745 | struct inode *inode = d_inode(dentry); |
1746 | struct gfs2_inode *ip = GFS2_I(inode); | 1746 | struct gfs2_inode *ip = GFS2_I(inode); |
1747 | struct gfs2_holder i_gh; | 1747 | struct gfs2_holder i_gh; |
1748 | int error; | 1748 | int error; |
@@ -1798,7 +1798,7 @@ out: | |||
1798 | static int gfs2_getattr(struct vfsmount *mnt, struct dentry *dentry, | 1798 | static int gfs2_getattr(struct vfsmount *mnt, struct dentry *dentry, |
1799 | struct kstat *stat) | 1799 | struct kstat *stat) |
1800 | { | 1800 | { |
1801 | struct inode *inode = dentry->d_inode; | 1801 | struct inode *inode = d_inode(dentry); |
1802 | struct gfs2_inode *ip = GFS2_I(inode); | 1802 | struct gfs2_inode *ip = GFS2_I(inode); |
1803 | struct gfs2_holder gh; | 1803 | struct gfs2_holder gh; |
1804 | int error; | 1804 | int error; |
@@ -1821,7 +1821,7 @@ static int gfs2_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
1821 | static int gfs2_setxattr(struct dentry *dentry, const char *name, | 1821 | static int gfs2_setxattr(struct dentry *dentry, const char *name, |
1822 | const void *data, size_t size, int flags) | 1822 | const void *data, size_t size, int flags) |
1823 | { | 1823 | { |
1824 | struct inode *inode = dentry->d_inode; | 1824 | struct inode *inode = d_inode(dentry); |
1825 | struct gfs2_inode *ip = GFS2_I(inode); | 1825 | struct gfs2_inode *ip = GFS2_I(inode); |
1826 | struct gfs2_holder gh; | 1826 | struct gfs2_holder gh; |
1827 | int ret; | 1827 | int ret; |
@@ -1841,7 +1841,7 @@ static int gfs2_setxattr(struct dentry *dentry, const char *name, | |||
1841 | static ssize_t gfs2_getxattr(struct dentry *dentry, const char *name, | 1841 | static ssize_t gfs2_getxattr(struct dentry *dentry, const char *name, |
1842 | void *data, size_t size) | 1842 | void *data, size_t size) |
1843 | { | 1843 | { |
1844 | struct inode *inode = dentry->d_inode; | 1844 | struct inode *inode = d_inode(dentry); |
1845 | struct gfs2_inode *ip = GFS2_I(inode); | 1845 | struct gfs2_inode *ip = GFS2_I(inode); |
1846 | struct gfs2_holder gh; | 1846 | struct gfs2_holder gh; |
1847 | int ret; | 1847 | int ret; |
@@ -1862,7 +1862,7 @@ static ssize_t gfs2_getxattr(struct dentry *dentry, const char *name, | |||
1862 | 1862 | ||
1863 | static int gfs2_removexattr(struct dentry *dentry, const char *name) | 1863 | static int gfs2_removexattr(struct dentry *dentry, const char *name) |
1864 | { | 1864 | { |
1865 | struct inode *inode = dentry->d_inode; | 1865 | struct inode *inode = d_inode(dentry); |
1866 | struct gfs2_inode *ip = GFS2_I(inode); | 1866 | struct gfs2_inode *ip = GFS2_I(inode); |
1867 | struct gfs2_holder gh; | 1867 | struct gfs2_holder gh; |
1868 | int ret; | 1868 | int ret; |
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index efc8e254787c..35b49f44c72f 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
@@ -647,7 +647,7 @@ out_unlock: | |||
647 | 647 | ||
648 | static int init_journal(struct gfs2_sbd *sdp, int undo) | 648 | static int init_journal(struct gfs2_sbd *sdp, int undo) |
649 | { | 649 | { |
650 | struct inode *master = sdp->sd_master_dir->d_inode; | 650 | struct inode *master = d_inode(sdp->sd_master_dir); |
651 | struct gfs2_holder ji_gh; | 651 | struct gfs2_holder ji_gh; |
652 | struct gfs2_inode *ip; | 652 | struct gfs2_inode *ip; |
653 | int jindex = 1; | 653 | int jindex = 1; |
@@ -782,7 +782,7 @@ static struct lock_class_key gfs2_quota_imutex_key; | |||
782 | static int init_inodes(struct gfs2_sbd *sdp, int undo) | 782 | static int init_inodes(struct gfs2_sbd *sdp, int undo) |
783 | { | 783 | { |
784 | int error = 0; | 784 | int error = 0; |
785 | struct inode *master = sdp->sd_master_dir->d_inode; | 785 | struct inode *master = d_inode(sdp->sd_master_dir); |
786 | 786 | ||
787 | if (undo) | 787 | if (undo) |
788 | goto fail_qinode; | 788 | goto fail_qinode; |
@@ -848,7 +848,7 @@ static int init_per_node(struct gfs2_sbd *sdp, int undo) | |||
848 | char buf[30]; | 848 | char buf[30]; |
849 | int error = 0; | 849 | int error = 0; |
850 | struct gfs2_inode *ip; | 850 | struct gfs2_inode *ip; |
851 | struct inode *master = sdp->sd_master_dir->d_inode; | 851 | struct inode *master = d_inode(sdp->sd_master_dir); |
852 | 852 | ||
853 | if (sdp->sd_args.ar_spectator) | 853 | if (sdp->sd_args.ar_spectator) |
854 | return 0; | 854 | return 0; |
@@ -1357,7 +1357,7 @@ static struct dentry *gfs2_mount_meta(struct file_system_type *fs_type, | |||
1357 | return ERR_PTR(error); | 1357 | return ERR_PTR(error); |
1358 | } | 1358 | } |
1359 | s = sget(&gfs2_fs_type, test_gfs2_super, set_meta_super, flags, | 1359 | s = sget(&gfs2_fs_type, test_gfs2_super, set_meta_super, flags, |
1360 | path.dentry->d_inode->i_sb->s_bdev); | 1360 | d_inode(path.dentry)->i_sb->s_bdev); |
1361 | path_put(&path); | 1361 | path_put(&path); |
1362 | if (IS_ERR(s)) { | 1362 | if (IS_ERR(s)) { |
1363 | pr_warn("gfs2 mount does not exist\n"); | 1363 | pr_warn("gfs2 mount does not exist\n"); |
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index 1666382b198d..859c6edbf81a 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c | |||
@@ -1171,7 +1171,7 @@ static int gfs2_statfs_i(struct gfs2_sbd *sdp, struct gfs2_statfs_change_host *s | |||
1171 | 1171 | ||
1172 | static int gfs2_statfs(struct dentry *dentry, struct kstatfs *buf) | 1172 | static int gfs2_statfs(struct dentry *dentry, struct kstatfs *buf) |
1173 | { | 1173 | { |
1174 | struct super_block *sb = dentry->d_inode->i_sb; | 1174 | struct super_block *sb = d_inode(dentry)->i_sb; |
1175 | struct gfs2_sbd *sdp = sb->s_fs_info; | 1175 | struct gfs2_sbd *sdp = sb->s_fs_info; |
1176 | struct gfs2_statfs_change_host sc; | 1176 | struct gfs2_statfs_change_host sc; |
1177 | int error; | 1177 | int error; |
diff --git a/fs/gfs2/xattr.c b/fs/gfs2/xattr.c index fd260ce8869a..4c096fa9e2a1 100644 --- a/fs/gfs2/xattr.c +++ b/fs/gfs2/xattr.c | |||
@@ -420,7 +420,7 @@ static int ea_list_i(struct gfs2_inode *ip, struct buffer_head *bh, | |||
420 | 420 | ||
421 | ssize_t gfs2_listxattr(struct dentry *dentry, char *buffer, size_t size) | 421 | ssize_t gfs2_listxattr(struct dentry *dentry, char *buffer, size_t size) |
422 | { | 422 | { |
423 | struct gfs2_inode *ip = GFS2_I(dentry->d_inode); | 423 | struct gfs2_inode *ip = GFS2_I(d_inode(dentry)); |
424 | struct gfs2_ea_request er; | 424 | struct gfs2_ea_request er; |
425 | struct gfs2_holder i_gh; | 425 | struct gfs2_holder i_gh; |
426 | int error; | 426 | int error; |
@@ -586,7 +586,7 @@ out: | |||
586 | static int gfs2_xattr_get(struct dentry *dentry, const char *name, | 586 | static int gfs2_xattr_get(struct dentry *dentry, const char *name, |
587 | void *buffer, size_t size, int type) | 587 | void *buffer, size_t size, int type) |
588 | { | 588 | { |
589 | struct gfs2_inode *ip = GFS2_I(dentry->d_inode); | 589 | struct gfs2_inode *ip = GFS2_I(d_inode(dentry)); |
590 | struct gfs2_ea_location el; | 590 | struct gfs2_ea_location el; |
591 | int error; | 591 | int error; |
592 | 592 | ||
@@ -1230,7 +1230,7 @@ int __gfs2_xattr_set(struct inode *inode, const char *name, | |||
1230 | static int gfs2_xattr_set(struct dentry *dentry, const char *name, | 1230 | static int gfs2_xattr_set(struct dentry *dentry, const char *name, |
1231 | const void *value, size_t size, int flags, int type) | 1231 | const void *value, size_t size, int flags, int type) |
1232 | { | 1232 | { |
1233 | return __gfs2_xattr_set(dentry->d_inode, name, value, | 1233 | return __gfs2_xattr_set(d_inode(dentry), name, value, |
1234 | size, flags, type); | 1234 | size, flags, type); |
1235 | } | 1235 | } |
1236 | 1236 | ||