mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 06:24:12 +00:00
NFSv3: Remove unused function nfs3_proc_set_default_acl
Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
718360c59f
commit
d4c42fb493
1 changed files with 0 additions and 19 deletions
|
@ -233,25 +233,6 @@ fail:
|
||||||
return PTR_ERR(alloc);
|
return PTR_ERR(alloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
int nfs3_proc_set_default_acl(struct inode *dir, struct inode *inode,
|
|
||||||
umode_t mode)
|
|
||||||
{
|
|
||||||
struct posix_acl *default_acl, *acl;
|
|
||||||
int error;
|
|
||||||
|
|
||||||
error = posix_acl_create(dir, &mode, &default_acl, &acl);
|
|
||||||
if (error)
|
|
||||||
return (error == -EOPNOTSUPP) ? 0 : error;
|
|
||||||
|
|
||||||
error = nfs3_proc_setacls(inode, acl, default_acl);
|
|
||||||
|
|
||||||
if (acl)
|
|
||||||
posix_acl_release(acl);
|
|
||||||
if (default_acl)
|
|
||||||
posix_acl_release(default_acl);
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
const struct xattr_handler *nfs3_xattr_handlers[] = {
|
const struct xattr_handler *nfs3_xattr_handlers[] = {
|
||||||
&posix_acl_access_xattr_handler,
|
&posix_acl_access_xattr_handler,
|
||||||
&posix_acl_default_xattr_handler,
|
&posix_acl_default_xattr_handler,
|
||||||
|
|
Loading…
Add table
Reference in a new issue