]> git.karo-electronics.de Git - linux-beck.git/blobdiff - fs/9p/acl.c
9p: switch v9fs_acl_chmod() from dentry to inode+fid
[linux-beck.git] / fs / 9p / acl.c
index 506d8af26a1fc46e68a7d10dcde7a7869efbd5f6..81ae143ff3f7a37a05d6998b07fa230838cb6808 100644 (file)
@@ -147,17 +147,13 @@ err_free_out:
        return retval;
 }
 
-int v9fs_acl_chmod(struct dentry *dentry)
+int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid)
 {
        int retval = 0;
        struct posix_acl *acl;
-       struct inode *inode = dentry->d_inode;
-       struct p9_fid *fid = v9fs_fid_lookup(dentry);
 
        if (S_ISLNK(inode->i_mode))
                return -EOPNOTSUPP;
-       if (IS_ERR(fid))
-               return PTR_ERR(fid);
        acl = v9fs_get_cached_acl(inode, ACL_TYPE_ACCESS);
        if (acl) {
                retval = posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode);