diff options
Diffstat (limited to 'fs/kernfs/inode.c')
-rw-r--r-- | fs/kernfs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/kernfs/inode.c b/fs/kernfs/inode.c index 9000874a945b..2da8493a380b 100644 --- a/fs/kernfs/inode.c +++ b/fs/kernfs/inode.c | |||
@@ -111,7 +111,7 @@ int kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr) | |||
111 | 111 | ||
112 | int kernfs_iop_setattr(struct dentry *dentry, struct iattr *iattr) | 112 | int kernfs_iop_setattr(struct dentry *dentry, struct iattr *iattr) |
113 | { | 113 | { |
114 | struct inode *inode = dentry->d_inode; | 114 | struct inode *inode = d_inode(dentry); |
115 | struct kernfs_node *kn = dentry->d_fsdata; | 115 | struct kernfs_node *kn = dentry->d_fsdata; |
116 | int error; | 116 | int error; |
117 | 117 | ||
@@ -172,11 +172,11 @@ int kernfs_iop_setxattr(struct dentry *dentry, const char *name, | |||
172 | 172 | ||
173 | if (!strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN)) { | 173 | if (!strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN)) { |
174 | const char *suffix = name + XATTR_SECURITY_PREFIX_LEN; | 174 | const char *suffix = name + XATTR_SECURITY_PREFIX_LEN; |
175 | error = security_inode_setsecurity(dentry->d_inode, suffix, | 175 | error = security_inode_setsecurity(d_inode(dentry), suffix, |
176 | value, size, flags); | 176 | value, size, flags); |
177 | if (error) | 177 | if (error) |
178 | return error; | 178 | return error; |
179 | error = security_inode_getsecctx(dentry->d_inode, | 179 | error = security_inode_getsecctx(d_inode(dentry), |
180 | &secdata, &secdata_len); | 180 | &secdata, &secdata_len); |
181 | if (error) | 181 | if (error) |
182 | return error; | 182 | return error; |
@@ -271,7 +271,7 @@ int kernfs_iop_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
271 | struct kstat *stat) | 271 | struct kstat *stat) |
272 | { | 272 | { |
273 | struct kernfs_node *kn = dentry->d_fsdata; | 273 | struct kernfs_node *kn = dentry->d_fsdata; |
274 | struct inode *inode = dentry->d_inode; | 274 | struct inode *inode = d_inode(dentry); |
275 | 275 | ||
276 | mutex_lock(&kernfs_mutex); | 276 | mutex_lock(&kernfs_mutex); |
277 | kernfs_refresh_inode(kn, inode); | 277 | kernfs_refresh_inode(kn, inode); |