diff options
Diffstat (limited to 'fs/9p/acl.c')
-rw-r--r-- | fs/9p/acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/acl.c b/fs/9p/acl.c index 8482f2d11606..31c010372660 100644 --- a/fs/9p/acl.c +++ b/fs/9p/acl.c | |||
@@ -247,7 +247,7 @@ static int v9fs_xattr_get_acl(struct dentry *dentry, const char *name, | |||
247 | if ((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) | 247 | if ((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) |
248 | return v9fs_remote_get_acl(dentry, name, buffer, size, type); | 248 | return v9fs_remote_get_acl(dentry, name, buffer, size, type); |
249 | 249 | ||
250 | acl = v9fs_get_cached_acl(dentry->d_inode, type); | 250 | acl = v9fs_get_cached_acl(d_inode(dentry), type); |
251 | if (IS_ERR(acl)) | 251 | if (IS_ERR(acl)) |
252 | return PTR_ERR(acl); | 252 | return PTR_ERR(acl); |
253 | if (acl == NULL) | 253 | if (acl == NULL) |
@@ -285,7 +285,7 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name, | |||
285 | int retval; | 285 | int retval; |
286 | struct posix_acl *acl; | 286 | struct posix_acl *acl; |
287 | struct v9fs_session_info *v9ses; | 287 | struct v9fs_session_info *v9ses; |
288 | struct inode *inode = dentry->d_inode; | 288 | struct inode *inode = d_inode(dentry); |
289 | 289 | ||
290 | if (strcmp(name, "") != 0) | 290 | if (strcmp(name, "") != 0) |
291 | return -EINVAL; | 291 | return -EINVAL; |