• Home
  • Raw
  • Download

Lines Matching refs:i

376 	int sorted = 0, i;  in sort_pacl_range()  local
382 for (i = start; i < end; i++) { in sort_pacl_range()
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()
398 int i, j; in sort_pacl() local
404 i = 1; in sort_pacl()
405 while (pacl->a_entries[i].e_tag == ACL_USER) in sort_pacl()
406 i++; in sort_pacl()
407 sort_pacl_range(pacl, 1, i-1); in sort_pacl()
409 BUG_ON(pacl->a_entries[i].e_tag != ACL_GROUP_OBJ); in sort_pacl()
410 j = ++i; in sort_pacl()
413 sort_pacl_range(pacl, i, j-1); in sort_pacl()
496 int i; in posix_state_to_acl() local
523 for (i=0; i < state->users->n; i++) { in posix_state_to_acl()
526 low_mode_from_nfs4(state->users->aces[i].perms.allow, in posix_state_to_acl()
528 pace->e_uid = state->users->aces[i].uid; in posix_state_to_acl()
529 add_to_mask(state, &state->users->aces[i].perms); in posix_state_to_acl()
537 for (i=0; i < state->groups->n; i++) { in posix_state_to_acl()
540 low_mode_from_nfs4(state->groups->aces[i].perms.allow, in posix_state_to_acl()
542 pace->e_gid = state->groups->aces[i].gid; in posix_state_to_acl()
543 add_to_mask(state, &state->groups->aces[i].perms); in posix_state_to_acl()
574 int i; in find_uid() local
576 for (i = 0; i < a->n; i++) in find_uid()
577 if (uid_eq(a->aces[i].uid, uid)) in find_uid()
578 return i; in find_uid()
581 a->aces[i].uid = uid; in find_uid()
582 a->aces[i].perms.allow = state->everyone.allow; in find_uid()
583 a->aces[i].perms.deny = state->everyone.deny; in find_uid()
585 return i; in find_uid()
591 int i; in find_gid() local
593 for (i = 0; i < a->n; i++) in find_gid()
594 if (gid_eq(a->aces[i].gid, gid)) in find_gid()
595 return i; in find_gid()
598 a->aces[i].gid = gid; in find_gid()
599 a->aces[i].perms.allow = state->everyone.allow; in find_gid()
600 a->aces[i].perms.deny = state->everyone.deny; in find_gid()
602 return i; in find_gid()
607 int i; in deny_bits_array() local
609 for (i=0; i < a->n; i++) in deny_bits_array()
610 deny_bits(&a->aces[i].perms, mask); in deny_bits_array()
615 int i; in allow_bits_array() local
617 for (i=0; i < a->n; i++) in allow_bits_array()
618 allow_bits(&a->aces[i].perms, mask); in allow_bits_array()
625 int i; in process_one_v4_ace() local
638 i = find_uid(state, ace->who_uid); in process_one_v4_ace()
640 allow_bits(&state->users->aces[i].perms, mask); in process_one_v4_ace()
642 deny_bits(&state->users->aces[i].perms, mask); in process_one_v4_ace()
643 mask = state->users->aces[i].perms.deny; in process_one_v4_ace()
660 i = find_gid(state, ace->who_gid); in process_one_v4_ace()
662 allow_bits(&state->groups->aces[i].perms, mask); in process_one_v4_ace()
664 deny_bits(&state->groups->aces[i].perms, mask); in process_one_v4_ace()
665 mask = state->groups->aces[i].perms.deny; in process_one_v4_ace()
857 int i; in nfs4_acl_get_whotype() local
859 for (i = 0; i < ARRAY_SIZE(s2t_map); i++) { in nfs4_acl_get_whotype()
860 if (s2t_map[i].stringlen == len && in nfs4_acl_get_whotype()
861 0 == memcmp(s2t_map[i].string, p, len)) in nfs4_acl_get_whotype()
862 return s2t_map[i].type; in nfs4_acl_get_whotype()
870 int i; in nfs4_acl_write_who() local
872 for (i = 0; i < ARRAY_SIZE(s2t_map); i++) { in nfs4_acl_write_who()
873 if (s2t_map[i].type != who) in nfs4_acl_write_who()
875 p = xdr_reserve_space(xdr, s2t_map[i].stringlen + 4); in nfs4_acl_write_who()
878 p = xdr_encode_opaque(p, s2t_map[i].string, in nfs4_acl_write_who()
879 s2t_map[i].stringlen); in nfs4_acl_write_who()