Commit 9147dc8d authored by Peng Tao's avatar Peng Tao Committed by Greg Kroah-Hartman

staging/lustre/llite: fix build erorr if CONFIG_FS_POSIX_ACL is off

Signed-off-by: default avatarPeng Tao <tao.peng@emc.com>
Signed-off-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2870cd10
...@@ -438,14 +438,6 @@ struct rmtacl_ctl_table { ...@@ -438,14 +438,6 @@ struct rmtacl_ctl_table {
#define EE_HASHES 32 #define EE_HASHES 32
struct eacl_entry {
struct list_head ee_list;
pid_t ee_key; /* hash key */
struct lu_fid ee_fid;
int ee_type; /* ACL type for ACCESS or DEFAULT */
ext_acl_xattr_header *ee_acl;
};
struct eacl_table { struct eacl_table {
spinlock_t et_lock; spinlock_t et_lock;
struct list_head et_entries[EE_HASHES]; struct list_head et_entries[EE_HASHES];
...@@ -1168,6 +1160,14 @@ void ll_ra_stats_inc(struct address_space *mapping, enum ra_stat which); ...@@ -1168,6 +1160,14 @@ void ll_ra_stats_inc(struct address_space *mapping, enum ra_stat which);
/* llite/llite_rmtacl.c */ /* llite/llite_rmtacl.c */
#ifdef CONFIG_FS_POSIX_ACL #ifdef CONFIG_FS_POSIX_ACL
struct eacl_entry {
struct list_head ee_list;
pid_t ee_key; /* hash key */
struct lu_fid ee_fid;
int ee_type; /* ACL type for ACCESS or DEFAULT */
ext_acl_xattr_header *ee_acl;
};
obd_valid rce_ops2valid(int ops); obd_valid rce_ops2valid(int ops);
struct rmtacl_ctl_entry *rct_search(struct rmtacl_ctl_table *rct, pid_t key); struct rmtacl_ctl_entry *rct_search(struct rmtacl_ctl_table *rct, pid_t key);
int rct_add(struct rmtacl_ctl_table *rct, pid_t key, int ops); int rct_add(struct rmtacl_ctl_table *rct, pid_t key, int ops);
...@@ -1183,6 +1183,11 @@ struct eacl_entry *et_search_del(struct eacl_table *et, pid_t key, ...@@ -1183,6 +1183,11 @@ struct eacl_entry *et_search_del(struct eacl_table *et, pid_t key,
void et_search_free(struct eacl_table *et, pid_t key); void et_search_free(struct eacl_table *et, pid_t key);
void et_init(struct eacl_table *et); void et_init(struct eacl_table *et);
void et_fini(struct eacl_table *et); void et_fini(struct eacl_table *et);
#else
static inline obd_valid rce_ops2valid(int ops)
{
return 0;
}
#endif #endif
/* statahead.c */ /* statahead.c */
......
...@@ -112,9 +112,11 @@ int ll_setxattr_common(struct inode *inode, const char *name, ...@@ -112,9 +112,11 @@ int ll_setxattr_common(struct inode *inode, const char *name,
struct ptlrpc_request *req; struct ptlrpc_request *req;
int xattr_type, rc; int xattr_type, rc;
struct obd_capa *oc; struct obd_capa *oc;
#ifdef CONFIG_FS_POSIX_ACL
posix_acl_xattr_header *new_value = NULL; posix_acl_xattr_header *new_value = NULL;
struct rmtacl_ctl_entry *rce = NULL; struct rmtacl_ctl_entry *rce = NULL;
ext_acl_xattr_header *acl = NULL; ext_acl_xattr_header *acl = NULL;
#endif
const char *pv = value; const char *pv = value;
ENTRY; ENTRY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment