Home
last modified time | relevance | path

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

/linux-3.4.99/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()
213 sort(acl->a_entries, acl->a_count, sizeof(struct posix_acl_entry), in posix_acl_from_nfsacl()
235 if (acl->a_count == 4 && group_obj && mask && in posix_acl_from_nfsacl()
240 acl->a_count = 3; in posix_acl_from_nfsacl()
/linux-3.4.99/include/linux/
Dnfsacl.h48 w += max(acl_access ? (int)acl_access->a_count : 3, 4) * 12; in nfsacl_size()
50 w += max((int)acl_default->a_count, 4) * 12; in nfsacl_size()
Dposix_acl.h47 unsigned int a_count; member
52 for(pa=(acl)->a_entries, pe=pa+(acl)->a_count; pa<pe; pa++)
/linux-3.4.99/fs/
Dxattr_acl.c83 real_size = posix_acl_xattr_size(acl->a_count); in posix_acl_to_xattr()
91 for (n=0; n < acl->a_count; n++, ext_entry++) { in posix_acl_to_xattr()
Dposix_acl.c38 acl->a_count = count; in posix_acl_init()
64 int size = sizeof(struct posix_acl) + acl->a_count * in posix_acl_clone()
/linux-3.4.99/fs/xfs/
Dxfs_acl.c94 aclp->acl_cnt = cpu_to_be32(acl->a_count); in xfs_acl_to_disk()
95 for (i = 0; i < acl->a_count; i++) { in xfs_acl_to_disk()
201 (XFS_ACL_MAX_ENTRIES - acl->a_count)); in xfs_set_acl()
382 if (acl->a_count > XFS_ACL_MAX_ENTRIES) in xfs_xattr_acl_set()
/linux-3.4.99/fs/reiserfs/
Dxattr_acl.c157 *size = reiserfs_acl_size(acl->a_count); in posix_acl_to_disk()
159 acl->a_count * in posix_acl_to_disk()
166 for (n = 0; n < acl->a_count; n++) { in posix_acl_to_disk()
405 int size = reiserfs_acl_size(acl->a_count); in reiserfs_cache_default_acl()
451 size = reiserfs_xattr_nblocks(inode, reiserfs_acl_size(acl->a_count)); in reiserfs_acl_chmod()
/linux-3.4.99/fs/ext2/
Dacl.c91 *size = ext2_acl_size(acl->a_count); in ext2_acl_to_disk()
92 ext_acl = kmalloc(sizeof(ext2_acl_header) + acl->a_count * in ext2_acl_to_disk()
98 for (n=0; n < acl->a_count; n++) { in ext2_acl_to_disk()
/linux-3.4.99/fs/jffs2/
Dacl.c127 *size = jffs2_acl_size(acl->a_count); in jffs2_acl_to_medium()
128 header = kmalloc(sizeof(*header) + acl->a_count * sizeof(*entry), GFP_KERNEL); in jffs2_acl_to_medium()
133 for (i=0; i < acl->a_count; i++) { in jffs2_acl_to_medium()
/linux-3.4.99/fs/ext4/
Dacl.c93 *size = ext4_acl_size(acl->a_count); in ext4_acl_to_disk()
94 ext_acl = kmalloc(sizeof(ext4_acl_header) + acl->a_count * in ext4_acl_to_disk()
100 for (n = 0; n < acl->a_count; n++) { in ext4_acl_to_disk()
/linux-3.4.99/fs/ext3/
Dacl.c86 *size = ext3_acl_size(acl->a_count); in ext3_acl_to_disk()
87 ext_acl = kmalloc(sizeof(ext3_acl_header) + acl->a_count * in ext3_acl_to_disk()
93 for (n=0; n < acl->a_count; n++) { in ext3_acl_to_disk()
/linux-3.4.99/fs/nfsd/
Dnfs4acl.c143 size += 2*pacl->a_count; in nfs4_acl_posix_to_nfsv4()
148 size += 2*dpacl->a_count; in nfs4_acl_posix_to_nfsv4()
187 pe = acl->a_entries + acl->a_count; in summarize_posix_acl()
229 BUG_ON(pacl->a_count < 3); in _posix_to_nfsv4_one()
377 if (!pacl || pacl->a_count <= 4) in sort_pacl()
Dvfs.c511 buflen = posix_acl_xattr_size(pacl->a_count); in set_nfsv4_acl_one()
2327 if (acl && acl->a_count) { in nfsd_set_posix_acl()
2328 size = posix_acl_xattr_size(acl->a_count); in nfsd_set_posix_acl()
/linux-3.4.99/fs/nfs/
Dnfs3acl.c70 if (type == ACL_TYPE_ACCESS && acl->a_count == 0) in nfs3_getxattr()
317 if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES) in nfs3_proc_setacls()
319 if (dfacl != NULL && dfacl->a_count > NFS_ACL_MAX_ENTRIES) in nfs3_proc_setacls()
/linux-3.4.99/fs/lockd/
Dclntproc.c199 atomic_set(&call->a_count, 1); in nlm_alloc_call()
216 if (!atomic_dec_and_test(&call->a_count)) in nlmclnt_release_call()
684 atomic_inc(&req->a_count); in nlmclnt_unlock()
761 atomic_inc(&req->a_count); in nlmclnt_cancel()
Dsvcproc.c263 if (!atomic_dec_and_test(&call->a_count)) in nlmsvc_release_call()
/linux-3.4.99/fs/jfs/
Dacl.c99 size = posix_acl_xattr_size(acl->a_count); in jfs_set_acl()
/linux-3.4.99/fs/ocfs2/
Dacl.c84 *size = acl->a_count * sizeof(struct posix_acl_entry); in ocfs2_acl_to_xattr()
91 for (n = 0; n < acl->a_count; n++, entry++) { in ocfs2_acl_to_xattr()
/linux-3.4.99/fs/btrfs/
Dacl.c137 size = posix_acl_xattr_size(acl->a_count); in btrfs_set_acl()
/linux-3.4.99/include/linux/lockd/
Dlockd.h136 atomic_t a_count; member
/linux-3.4.99/fs/gfs2/
Dacl.c272 if (acl->a_count > GFS2_ACL_MAX_ENTRIES) in gfs2_xattr_system_set()
/linux-3.4.99/fs/9p/
Dacl.c130 size = posix_acl_xattr_size(acl->a_count); in v9fs_set_acl()