[PATCH] remove <linux/xattr_acl.h>
This file duplicates <linux/posix_acl_xattr.h>, using slightly different names. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
f9fd27a253
commit
9a59f452ab
11
fs/jfs/acl.c
11
fs/jfs/acl.c
@@ -21,6 +21,7 @@
|
||||
#include <linux/sched.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/quotaops.h>
|
||||
#include <linux/posix_acl_xattr.h>
|
||||
#include "jfs_incore.h"
|
||||
#include "jfs_xattr.h"
|
||||
#include "jfs_acl.h"
|
||||
@@ -36,11 +37,11 @@ static struct posix_acl *jfs_get_acl(struct inode *inode, int type)
|
||||
|
||||
switch(type) {
|
||||
case ACL_TYPE_ACCESS:
|
||||
ea_name = XATTR_NAME_ACL_ACCESS;
|
||||
ea_name = POSIX_ACL_XATTR_ACCESS;
|
||||
p_acl = &ji->i_acl;
|
||||
break;
|
||||
case ACL_TYPE_DEFAULT:
|
||||
ea_name = XATTR_NAME_ACL_DEFAULT;
|
||||
ea_name = POSIX_ACL_XATTR_DEFAULT;
|
||||
p_acl = &ji->i_default_acl;
|
||||
break;
|
||||
default:
|
||||
@@ -88,11 +89,11 @@ static int jfs_set_acl(struct inode *inode, int type, struct posix_acl *acl)
|
||||
|
||||
switch(type) {
|
||||
case ACL_TYPE_ACCESS:
|
||||
ea_name = XATTR_NAME_ACL_ACCESS;
|
||||
ea_name = POSIX_ACL_XATTR_ACCESS;
|
||||
p_acl = &ji->i_acl;
|
||||
break;
|
||||
case ACL_TYPE_DEFAULT:
|
||||
ea_name = XATTR_NAME_ACL_DEFAULT;
|
||||
ea_name = POSIX_ACL_XATTR_DEFAULT;
|
||||
p_acl = &ji->i_default_acl;
|
||||
if (!S_ISDIR(inode->i_mode))
|
||||
return acl ? -EACCES : 0;
|
||||
@@ -101,7 +102,7 @@ static int jfs_set_acl(struct inode *inode, int type, struct posix_acl *acl)
|
||||
return -EINVAL;
|
||||
}
|
||||
if (acl) {
|
||||
size = xattr_acl_size(acl->a_count);
|
||||
size = posix_acl_xattr_size(acl->a_count);
|
||||
value = kmalloc(size, GFP_KERNEL);
|
||||
if (!value)
|
||||
return -ENOMEM;
|
||||
|
Reference in New Issue
Block a user