#include #include #define REISERFS_ACL_VERSION 0x0001 typedef struct { __le16 e_tag; __le16 e_perm; __le32 e_id; } reiserfs_acl_entry; typedef struct { __le16 e_tag; __le16 e_perm; } reiserfs_acl_entry_short; typedef struct { __le32 a_version; } reiserfs_acl_header; static inline size_t reiserfs_acl_size(int count) { if (count <= 4) { return sizeof(reiserfs_acl_header) + count * sizeof(reiserfs_acl_entry_short); } else { return sizeof(reiserfs_acl_header) + 4 * sizeof(reiserfs_acl_entry_short) + (count - 4) * sizeof(reiserfs_acl_entry); } } static inline int reiserfs_acl_count(size_t size) { ssize_t s; size -= sizeof(reiserfs_acl_header); s = size - 4 * sizeof(reiserfs_acl_entry_short); if (s < 0) { if (size % sizeof(reiserfs_acl_entry_short)) return -1; return size / sizeof(reiserfs_acl_entry_short); } else { if (s % sizeof(reiserfs_acl_entry)) return -1; return s / sizeof(reiserfs_acl_entry) + 4; } } #ifdef CONFIG_REISERFS_FS_POSIX_ACL struct posix_acl *reiserfs_get_acl(struct inode *inode, int type); int reiserfs_set_acl(struct inode *inode, struct posix_acl *acl, int type); int reiserfs_acl_chmod(struct inode *inode); int reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, struct inode *dir, struct dentry *dentry, struct inode *inode); int reiserfs_cache_default_acl(struct inode *dir); #else #define reiserfs_cache_default_acl(inode) 0 #define reiserfs_get_acl NULL #define reiserfs_set_acl NULL static inline int reiserfs_acl_chmod(struct inode *inode) { return 0; } static inline int reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, const struct inode *dir, struct dentry *dentry, struct inode *inode) { return 0; } #endif href='/cgit.cgi/linux/net-next.git/log/net/batman-adv/Makefile?h=nds-private-remove'>logtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:41:46 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:41:46 -0800
commit5906374446386fd16fe562b042429d905d231ec3 (patch)
tree8e8a9f367d1aeba25c644d3fcf096ffc443c4c5a /net/batman-adv/Makefile
parent2fb78e89405f4321b86274a0c24b30896dd50529 (diff)
parent57b59ed2e5b91e958843609c7884794e29e6c4cb (diff)
Merge branch 'for-linus-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs
Pull btrfs updates from Chris Mason: "Some fixes that we've collected from the list. We still have one more pending to nail down a regression in lzo compression, but I wanted to get this batch out the door" * 'for-linus-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: Btrfs: remove ->{get, set}_acl() from btrfs_dir_ro_inode_operations Btrfs: disable xattr operations on subvolume directories Btrfs: remove old tree_root case in btrfs_read_locked_inode() Btrfs: fix truncate down when no_holes feature is enabled Btrfs: Fix deadlock between direct IO and fast fsync btrfs: fix false enospc error when truncating heavily reflinked file
Diffstat (limited to 'net/batman-adv/Makefile')