Home
last modified time | relevance | path

Searched refs:a_count (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.1.9/fs/nfs_common/
Dnfsacl.c95 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfsacl_encode()
113 if (encode_entries && acl && acl->a_count == 3) { in nfsacl_encode()
157 u32 entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfs_stream_encode_acl()
178 if (encode_entries && acl && acl->a_count == 3) { in nfs_stream_encode_acl()
298 sort(acl->a_entries, acl->a_count, sizeof(struct posix_acl_entry), in posix_acl_from_nfsacl()
316 if (acl->a_count == 4 && group_obj && mask && in posix_acl_from_nfsacl()
321 acl->a_count = 3; in posix_acl_from_nfsacl()
/linux-6.1.9/include/linux/
Dnfsacl.h29 w += max(acl_access ? (int)acl_access->a_count : 3, 4) * 12; in nfsacl_size()
31 w += max((int)acl_default->a_count, 4) * 12; in nfsacl_size()
Dposix_acl.h32 unsigned int a_count; member
37 for(pa=(acl)->a_entries, pe=pa+(acl)->a_count; pa<pe; pa++)
/linux-6.1.9/fs/reiserfs/
Dxattr_acl.c27 int size = acl ? posix_acl_xattr_size(acl->a_count) : 0; in reiserfs_set_acl()
143 *size = reiserfs_acl_size(acl->a_count); in reiserfs_posix_acl_to_disk()
145 acl->a_count * in reiserfs_posix_acl_to_disk()
152 for (n = 0; n < acl->a_count; n++) { in reiserfs_posix_acl_to_disk()
377 int size = reiserfs_acl_size(acl->a_count); in reiserfs_cache_default_acl()
/linux-6.1.9/fs/xfs/
Dxfs_acl.c104 aclp->acl_cnt = cpu_to_be32(acl->a_count); in xfs_acl_to_disk()
105 for (i = 0; i < acl->a_count; i++) { in xfs_acl_to_disk()
199 args.valuelen = XFS_ACL_SIZE(acl->a_count); in __xfs_set_acl()
256 if (acl->a_count > XFS_ACL_MAX_ENTRIES(XFS_M(inode->i_sb))) in xfs_set_acl()
/linux-6.1.9/fs/ext4/
Dacl.c97 *size = ext4_acl_size(acl->a_count); in ext4_acl_to_disk()
98 ext_acl = kmalloc(sizeof(ext4_acl_header) + acl->a_count * in ext4_acl_to_disk()
104 for (n = 0; n < acl->a_count; n++) { in ext4_acl_to_disk()
233 size_t acl_size = acl ? ext4_acl_size(acl->a_count) : 0; in ext4_set_acl()
/linux-6.1.9/fs/ext2/
Dacl.c98 *size = ext2_acl_size(acl->a_count); in ext2_acl_to_disk()
99 ext_acl = kmalloc(sizeof(ext2_acl_header) + acl->a_count * in ext2_acl_to_disk()
105 for (n=0; n < acl->a_count; n++) { in ext2_acl_to_disk()
/linux-6.1.9/fs/ceph/
Dacl.c126 size = posix_acl_xattr_size(acl->a_count); in ceph_set_acl()
193 val_size1 = posix_acl_xattr_size(acl->a_count); in ceph_pre_init_acls()
195 val_size2 = posix_acl_xattr_size(default_acl->a_count); in ceph_pre_init_acls()
/linux-6.1.9/fs/gfs2/
Dacl.c91 len = posix_acl_xattr_size(acl->a_count); in __gfs2_set_acl()
121 if (acl && acl->a_count > GFS2_ACL_MAX_ENTRIES(GFS2_SB(inode))) in gfs2_set_acl()
/linux-6.1.9/fs/jffs2/
Dacl.c135 *size = jffs2_acl_size(acl->a_count); in jffs2_acl_to_medium()
136 header = kmalloc(struct_size(header, a_entries, acl->a_count), in jffs2_acl_to_medium()
142 for (i=0; i < acl->a_count; i++) { in jffs2_acl_to_medium()
/linux-6.1.9/fs/f2fs/
Dacl.c121 acl->a_count * sizeof(struct f2fs_acl_entry), in f2fs_acl_to_disk()
129 for (i = 0; i < acl->a_count; i++) { in f2fs_acl_to_disk()
160 *size = f2fs_acl_size(acl->a_count); in f2fs_acl_to_disk()
298 int size = sizeof(struct posix_acl) + acl->a_count * in f2fs_acl_clone()
/linux-6.1.9/fs/nfs/
Dnfs3acl.c128 res.acl_access->a_count == 0) { in nfs3_get_acl()
190 if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES) in __nfs3_proc_setacls()
192 if (dfacl != NULL && dfacl->a_count > NFS_ACL_MAX_ENTRIES) in __nfs3_proc_setacls()
/linux-6.1.9/fs/nfsd/
Dnfs4acl.c146 size += 2 * pacl->a_count; in nfsd4_get_nfs4_acl()
157 size += 2 * dpacl->a_count; in nfsd4_get_nfs4_acl()
201 pe = acl->a_entries + acl->a_count; in summarize_posix_acl()
243 BUG_ON(pacl->a_count < 3); in _posix_to_nfsv4_one()
401 if (!pacl || pacl->a_count <= 4) in sort_pacl()
/linux-6.1.9/fs/fuse/
Dacl.c85 size_t size = posix_acl_xattr_size(acl->a_count); in fuse_set_acl()
/linux-6.1.9/fs/lockd/
Dclntproc.c209 refcount_set(&call->a_count, 1); in nlm_alloc_call()
227 if (!refcount_dec_and_test(&call->a_count)) in nlmclnt_release_call()
683 refcount_inc(&req->a_count); in nlmclnt_unlock()
774 refcount_inc(&req->a_count); in nlmclnt_cancel()
Dsvcproc.c311 if (!refcount_dec_and_test(&call->a_count)) in nlmsvc_release_call()
/linux-6.1.9/fs/btrfs/
Dacl.c81 size = posix_acl_xattr_size(acl->a_count); in __btrfs_set_acl()
/linux-6.1.9/fs/ocfs2/
Dacl.c83 *size = acl->a_count * sizeof(struct posix_acl_entry); in ocfs2_acl_to_xattr()
90 for (n = 0; n < acl->a_count; n++, entry++) { in ocfs2_acl_to_xattr()
/linux-6.1.9/fs/
Dposix_acl.c181 acl->a_count = count; in posix_acl_init()
209 int size = sizeof(struct posix_acl) + acl->a_count * in posix_acl_clone()
1085 real_size = posix_acl_xattr_size(acl->a_count); in posix_acl_to_xattr()
1094 for (n=0; n < acl->a_count; n++, ext_entry++) { in posix_acl_to_xattr()
/linux-6.1.9/fs/jfs/
Dacl.c79 size = posix_acl_xattr_size(acl->a_count); in __jfs_set_acl()
/linux-6.1.9/fs/orangefs/
Dacl.c94 size = posix_acl_xattr_size(acl->a_count); in __orangefs_set_acl()
/linux-6.1.9/include/linux/lockd/
Dlockd.h141 refcount_t a_count; member
/linux-6.1.9/fs/9p/
Dacl.c123 size = posix_acl_xattr_size(acl->a_count); in v9fs_set_acl()
/linux-6.1.9/fs/ksmbd/
Dvfs.c1383 sizeof(struct xattr_acl_entry) * posix_acls->a_count, in ksmbd_vfs_make_xattr_posix_acl()
1388 smb_acl->count = posix_acls->a_count; in ksmbd_vfs_make_xattr_posix_acl()
1391 for (i = 0; i < posix_acls->a_count; i++, pa_entry++, xa_entry++) { in ksmbd_vfs_make_xattr_posix_acl()
1891 for (i = 0; i < acls->a_count; i++, pace++) { in ksmbd_vfs_inherit_posix_acl()
Dsmbacl.c592 for (i = 0; i < fattr->cf_acls->a_count; i++, pace++) { in set_posix_acl_entries_dacl()
661 for (i = 0; i < fattr->cf_dacls->a_count; i++, pace++) { in set_posix_acl_entries_dacl()
1297 for (i = 0; i < posix_acls->a_count; i++, pa_entry++) { in smb_check_perm_dacl()

12