Home
last modified time | relevance | path

Searched refs:a_entries (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/fs/nfs_common/
Dnfsacl.c56 &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_encode()
124 acl2->a_entries[0] = acl->a_entries[0]; /* ACL_USER_OBJ */ in nfsacl_encode()
125 acl2->a_entries[1] = acl->a_entries[1]; /* ACL_GROUP_OBJ */ in nfsacl_encode()
126 acl2->a_entries[2] = acl->a_entries[1]; /* ACL_MASK */ in nfsacl_encode()
127 acl2->a_entries[2].e_tag = ACL_MASK; in nfsacl_encode()
128 acl2->a_entries[3] = acl->a_entries[2]; /* ACL_OTHER */ in nfsacl_encode()
163 entry = &nfsacl_desc->acl->a_entries[nfsacl_desc->count++]; in xdr_nfsace_decode()
227 sort(acl->a_entries, acl->a_count, sizeof(struct posix_acl_entry), in posix_acl_from_nfsacl()
248 memmove(mask, mask+1, (3 - (mask - acl->a_entries)) * in posix_acl_from_nfsacl()
/Linux-v5.4/fs/f2fs/
Dacl.c74 acl->a_entries[i].e_tag = le16_to_cpu(entry->e_tag); in f2fs_acl_from_disk()
75 acl->a_entries[i].e_perm = le16_to_cpu(entry->e_perm); in f2fs_acl_from_disk()
77 switch (acl->a_entries[i].e_tag) { in f2fs_acl_from_disk()
87 acl->a_entries[i].e_uid = in f2fs_acl_from_disk()
94 acl->a_entries[i].e_gid = in f2fs_acl_from_disk()
130 entry->e_tag = cpu_to_le16(acl->a_entries[i].e_tag); in f2fs_acl_to_disk()
131 entry->e_perm = cpu_to_le16(acl->a_entries[i].e_perm); in f2fs_acl_to_disk()
133 switch (acl->a_entries[i].e_tag) { in f2fs_acl_to_disk()
137 acl->a_entries[i].e_uid)); in f2fs_acl_to_disk()
144 acl->a_entries[i].e_gid)); in f2fs_acl_to_disk()
/Linux-v5.4/fs/ocfs2/
Dacl.c54 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ocfs2_acl_from_xattr()
55 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ocfs2_acl_from_xattr()
56 switch(acl->a_entries[n].e_tag) { in ocfs2_acl_from_xattr()
58 acl->a_entries[n].e_uid = in ocfs2_acl_from_xattr()
63 acl->a_entries[n].e_gid = in ocfs2_acl_from_xattr()
93 entry->e_tag = cpu_to_le16(acl->a_entries[n].e_tag); in ocfs2_acl_to_xattr()
94 entry->e_perm = cpu_to_le16(acl->a_entries[n].e_perm); in ocfs2_acl_to_xattr()
95 switch(acl->a_entries[n].e_tag) { in ocfs2_acl_to_xattr()
99 acl->a_entries[n].e_uid)); in ocfs2_acl_to_xattr()
104 acl->a_entries[n].e_gid)); in ocfs2_acl_to_xattr()
/Linux-v5.4/fs/reiserfs/
Dxattr_acl.c91 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in reiserfs_posix_acl_from_disk()
92 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in reiserfs_posix_acl_from_disk()
93 switch (acl->a_entries[n].e_tag) { in reiserfs_posix_acl_from_disk()
106 acl->a_entries[n].e_uid = in reiserfs_posix_acl_from_disk()
114 acl->a_entries[n].e_gid = in reiserfs_posix_acl_from_disk()
151 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in reiserfs_posix_acl_to_disk()
153 entry->e_tag = cpu_to_le16(acl->a_entries[n].e_tag); in reiserfs_posix_acl_to_disk()
154 entry->e_perm = cpu_to_le16(acl->a_entries[n].e_perm); in reiserfs_posix_acl_to_disk()
155 switch (acl->a_entries[n].e_tag) { in reiserfs_posix_acl_to_disk()
/Linux-v5.4/fs/jffs2/
Dacl.c89 acl->a_entries[i].e_tag = je16_to_cpu(entry->e_tag); in jffs2_acl_from_medium()
90 acl->a_entries[i].e_perm = je16_to_cpu(entry->e_perm); in jffs2_acl_from_medium()
91 switch (acl->a_entries[i].e_tag) { in jffs2_acl_from_medium()
103 acl->a_entries[i].e_uid = in jffs2_acl_from_medium()
111 acl->a_entries[i].e_gid = in jffs2_acl_from_medium()
136 header = kmalloc(struct_size(header, a_entries, acl->a_count), in jffs2_acl_to_medium()
143 const struct posix_acl_entry *acl_e = &acl->a_entries[i]; in jffs2_acl_to_medium()
Dacl.h25 struct jffs2_acl_entry a_entries[]; member
/Linux-v5.4/fs/ext2/
Dacl.c47 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ext2_acl_from_disk()
48 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ext2_acl_from_disk()
49 switch(acl->a_entries[n].e_tag) { in ext2_acl_from_disk()
62 acl->a_entries[n].e_uid = in ext2_acl_from_disk()
70 acl->a_entries[n].e_gid = in ext2_acl_from_disk()
106 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in ext2_acl_to_disk()
/Linux-v5.4/fs/ext4/
Dacl.c45 acl->a_entries[n].e_tag = le16_to_cpu(entry->e_tag); in ext4_acl_from_disk()
46 acl->a_entries[n].e_perm = le16_to_cpu(entry->e_perm); in ext4_acl_from_disk()
48 switch (acl->a_entries[n].e_tag) { in ext4_acl_from_disk()
61 acl->a_entries[n].e_uid = in ext4_acl_from_disk()
69 acl->a_entries[n].e_gid = in ext4_acl_from_disk()
105 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in ext4_acl_to_disk()
/Linux-v5.4/fs/nfsd/
Dnfs4acl.c201 pe = acl->a_entries + acl->a_count; in summarize_posix_acl()
246 pa = pacl->a_entries; in _posix_to_nfsv4_one()
383 if (pace_gt(&pacl->a_entries[i], in sort_pacl_range()
384 &pacl->a_entries[i+1])) { in sort_pacl_range()
386 swap(pacl->a_entries[i], in sort_pacl_range()
387 pacl->a_entries[i + 1]); in sort_pacl_range()
405 while (pacl->a_entries[i].e_tag == ACL_USER) in sort_pacl()
409 BUG_ON(pacl->a_entries[i].e_tag != ACL_GROUP_OBJ); in sort_pacl()
411 while (pacl->a_entries[j].e_tag == ACL_GROUP) in sort_pacl()
519 pace = pacl->a_entries; in posix_state_to_acl()
/Linux-v5.4/fs/
Dposix_acl.c331 acl->a_entries[0].e_tag = ACL_USER_OBJ; in posix_acl_from_mode()
332 acl->a_entries[0].e_perm = (mode & S_IRWXU) >> 6; in posix_acl_from_mode()
334 acl->a_entries[1].e_tag = ACL_GROUP_OBJ; in posix_acl_from_mode()
335 acl->a_entries[1].e_perm = (mode & S_IRWXG) >> 3; in posix_acl_from_mode()
337 acl->a_entries[2].e_tag = ACL_OTHER; in posix_acl_from_mode()
338 acl->a_entries[2].e_perm = (mode & S_IRWXO); in posix_acl_from_mode()
750 acl_e = acl->a_entries; in posix_acl_from_xattr()
811 const struct posix_acl_entry *acl_e = &acl->a_entries[n]; in posix_acl_to_xattr()
/Linux-v5.4/include/linux/
Dposix_acl.h31 struct posix_acl_entry a_entries[0]; member
35 for(pa=(acl)->a_entries, pe=pa+(acl)->a_count; pa<pe; pa++)
/Linux-v5.4/fs/xfs/
Dxfs_acl.c46 acl_e = &acl->a_entries[i]; in xfs_acl_from_disk()
91 acl_e = &acl->a_entries[i]; in xfs_acl_to_disk()