vserver 1.9.5.x5
[linux-2.6.git] / fs / ext2 / acl.h
index 01937da..fed96ae 100644 (file)
@@ -7,21 +7,20 @@
 #include <linux/xattr_acl.h>
 
 #define EXT2_ACL_VERSION       0x0001
-#define EXT2_ACL_MAX_ENTRIES   32
 
 typedef struct {
-       __u16           e_tag;
-       __u16           e_perm;
-       __u32           e_id;
+       __le16          e_tag;
+       __le16          e_perm;
+       __le32          e_id;
 } ext2_acl_entry;
 
 typedef struct {
-       __u16           e_tag;
-       __u16           e_perm;
+       __le16          e_tag;
+       __le16          e_perm;
 } ext2_acl_entry_short;
 
 typedef struct {
-       __u32           a_version;
+       __le32          a_version;
 } ext2_acl_header;
 
 static inline size_t ext2_acl_size(int count)
@@ -63,9 +62,6 @@ extern int ext2_permission (struct inode *, int, struct nameidata *);
 extern int ext2_acl_chmod (struct inode *);
 extern int ext2_init_acl (struct inode *, struct inode *);
 
-extern int init_ext2_acl(void);
-extern void exit_ext2_acl(void);
-
 #else
 #include <linux/sched.h>
 #define ext2_permission NULL
@@ -80,7 +76,6 @@ ext2_acl_chmod (struct inode *inode)
 
 static inline int ext2_init_acl (struct inode *inode, struct inode *dir)
 {
-       inode->i_mode &= ~current->fs->umask;
        return 0;
 }
 #endif