cregit-Linux how code gets into the kernel

Release 4.10 fs/reiserfs/acl.h

Directory: fs/reiserfs
#include <linux/init.h>
#include <linux/posix_acl.h>


#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); } }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton58100.00%1100.00%
Total58100.00%1100.00%


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; } }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton86100.00%1100.00%
Total86100.00%1100.00%

#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; }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton15100.00%1100.00%
Total15100.00%1100.00%


static inline int reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, const struct inode *dir, struct dentry *dentry, struct inode *inode) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton2683.87%150.00%
alexander beregalovalexander beregalov516.13%150.00%
Total31100.00%2100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton29187.92%228.57%
christoph hellwigchristoph hellwig247.25%228.57%
al viroal viro61.81%114.29%
jeff mahoneyjeff mahoney51.51%114.29%
alexander beregalovalexander beregalov51.51%114.29%
linus torvaldslinus torvalds0.00%00.00%
Total331100.00%7100.00%
Directory: fs/reiserfs
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.