lustre_eacl.h contains a number of declarations that are never used:
remove them.
The declarations which are used are only needed on server-side files,
so remove the #include from elsewhere.
As obdclass/acl.c is only built server-side, remove the
#ifdef HAVE_SERVER_SUPPORT
in the file.
Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: If1a3d908bf8357041c38ab9d335efa1e051cef16
Reviewed-on: https://review.whamcloud.com/41126
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
# include <linux/fs.h>
# include <lustre_compat.h>
-typedef struct {
- __u16 e_tag;
- __u16 e_perm;
- __u32 e_id;
- __u32 e_stat;
-} ext_acl_xattr_entry;
-
-typedef struct {
- __u32 a_count;
- ext_acl_xattr_entry a_entries[0];
-} ext_acl_xattr_header;
-
-#define CFS_ACL_XATTR_SIZE(count, prefix) \
- (sizeof(prefix ## _header) + (count) * sizeof(prefix ## _entry))
-
-#define CFS_ACL_XATTR_COUNT(size, prefix) \
- (((size) - sizeof(prefix ## _header)) / sizeof(prefix ## _entry))
-
#ifdef HAVE_SERVER_SUPPORT
struct lu_ucred;
struct lu_attr;
#define LLITE_INTERNAL_H
#include <obd.h>
#include <lustre_disk.h> /* for s2sbi */
-#include <lustre_eacl.h>
#include <lustre_linkea.h>
/* for struct cl_lock_descr and struct cl_io */
#include <obd_support.h>
#include <lustre_dlm.h>
-#include <lustre_eacl.h>
#include <lustre_swab.h>
#include "llite_internal.h"
#include <lustre_acl.h>
#include <lustre_eacl.h>
#include <obd_support.h>
-#ifdef HAVE_SERVER_SUPPORT
-# include <lustre_idmap.h>
-# include <md_object.h>
-#endif /* HAVE_SERVER_SUPPORT */
+#include <lustre_idmap.h>
+#include <md_object.h>
#ifdef CONFIG_LUSTRE_FS_POSIX_ACL
#include <uapi/linux/lnet/nidstr.h>
#include <lustre_net.h>
#include <lustre_acl.h>
-#include <lustre_eacl.h>
#include <obd_class.h>
#include "nodemap_internal.h"