X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2F9p%2Facl.c;h=9a1d426307510135444da722883e570fe52410b9;hb=94bd217e2d683719ab21a4ac117d8a1b91cbedc9;hp=814be079c185277e5fde8f186cd1d2611e32e73d;hpb=f549953c15deab4c54708b39af86d4edecc6cddc;p=~andy%2Flinux diff --git a/fs/9p/acl.c b/fs/9p/acl.c index 814be079c18..9a1d4263075 100644 --- a/fs/9p/acl.c +++ b/fs/9p/acl.c @@ -98,7 +98,6 @@ static struct posix_acl *v9fs_get_cached_acl(struct inode *inode, int type) struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type) { - struct posix_acl *acl; struct v9fs_session_info *v9ses; v9ses = v9fs_inode2v9ses(inode); @@ -183,11 +182,11 @@ int v9fs_set_create_acl(struct dentry *dentry, return 0; } -int v9fs_acl_mode(struct inode *dir, mode_t *modep, +int v9fs_acl_mode(struct inode *dir, umode_t *modep, struct posix_acl **dpacl, struct posix_acl **pacl) { int retval = 0; - mode_t mode = *modep; + umode_t mode = *modep; struct posix_acl *acl = NULL; if (!S_ISLNK(mode)) { @@ -320,7 +319,7 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name, case ACL_TYPE_ACCESS: name = POSIX_ACL_XATTR_ACCESS; if (acl) { - mode_t mode = inode->i_mode; + umode_t mode = inode->i_mode; retval = posix_acl_equiv_mode(acl, &mode); if (retval < 0) goto err_out;