cregit-Linux how code gets into the kernel

Release 4.18 fs/reiserfs/acl.h

Directory: fs/reiserfs
/* SPDX-License-Identifier: GPL-2.0 */
#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 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 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 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 Morton2683.87%150.00%
Alexander Beregalov516.13%150.00%
Total31100.00%2100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton29187.65%225.00%
Christoph Hellwig247.23%225.00%
Al Viro61.81%112.50%
Jeff Mahoney51.51%112.50%
Alexander Beregalov51.51%112.50%
Greg Kroah-Hartman10.30%112.50%
Linus Torvalds0.00%00.00%
Total332100.00%8100.00%
Directory: fs/reiserfs
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.