Home
last modified time | relevance | path

Searched refs:group (Results 1 – 25 of 53) sorted by relevance

123

/fs/ext2/
Dialloc.c65 static void ext2_release_inode(struct super_block *sb, int group, int dir) in ext2_release_inode() argument
70 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode()
73 "can't get descriptor for group %d", group); in ext2_release_inode()
77 spin_lock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode()
81 spin_unlock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode()
217 int group, best_group = -1; in find_group_dir() local
219 for (group = 0; group < ngroups; group++) { in find_group_dir()
220 desc = ext2_get_group_desc (sb, group, NULL); in find_group_dir()
228 best_group = group; in find_group_dir()
280 int group = -1, i; in find_group_orlov() local
[all …]
Dballoc.c275 unsigned int group, struct super_block * sb) in goal_in_my_reservation() argument
279 group_first_block = ext2_group_first_block_no(sb, group); in goal_in_my_reservation()
672 ext2_try_to_allocate(struct super_block *sb, int group, in ext2_try_to_allocate() argument
683 group_first_block = ext2_group_first_block_no(sb, group); in ext2_try_to_allocate()
724 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), grp_goal, in ext2_try_to_allocate()
739 && !ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), in ext2_try_to_allocate()
908 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument
918 group_first_block = ext2_group_first_block_no(sb, group); in alloc_new_reservation()
1100 ext2_try_to_allocate_with_rsv(struct super_block *sb, unsigned int group, in ext2_try_to_allocate_with_rsv() argument
1116 return ext2_try_to_allocate(sb, group, bitmap_bh, in ext2_try_to_allocate_with_rsv()
[all …]
Dext2.h88 extern int ext2_bg_has_super(struct super_block *sb, int group);
89 extern unsigned long ext2_bg_num_gdb(struct super_block *sb, int group);
/fs/ext3/
Dialloc.c205 int group, best_group = -1; in find_group_dir() local
210 for (group = 0; group < ngroups; group++) { in find_group_dir()
211 desc = ext3_get_group_desc (sb, group, NULL); in find_group_dir()
219 best_group = group; in find_group_dir()
267 int group = -1, i; in find_group_orlov() local
281 get_random_bytes(&group, sizeof(group)); in find_group_orlov()
282 parent_group = (unsigned)group % ngroups; in find_group_orlov()
284 group = (parent_group + i) % ngroups; in find_group_orlov()
285 desc = ext3_get_group_desc (sb, group, NULL); in find_group_orlov()
294 best_group = group; in find_group_orlov()
[all …]
Dballoc.c262 unsigned int group, struct super_block * sb) in goal_in_my_reservation() argument
266 group_first_block = ext3_group_first_block_no(sb, group); in goal_in_my_reservation()
865 ext3_try_to_allocate(struct super_block *sb, handle_t *handle, int group, in ext3_try_to_allocate() argument
875 group_first_block = ext3_group_first_block_no(sb, group); in ext3_try_to_allocate()
916 if (!claim_block(sb_bgl_lock(EXT3_SB(sb), group), in ext3_try_to_allocate()
932 && claim_block(sb_bgl_lock(EXT3_SB(sb), group), in ext3_try_to_allocate()
1101 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument
1111 group_first_block = ext3_group_first_block_no(sb, group); in alloc_new_reservation()
1299 unsigned int group, struct buffer_head *bitmap_bh, in ext3_try_to_allocate_with_rsv() argument
1330 ret = ext3_try_to_allocate(sb, handle, group, bitmap_bh, in ext3_try_to_allocate_with_rsv()
[all …]
Dresize.c30 unsigned group = input->group; in verify_group_input() local
32 unsigned overhead = ext3_bg_has_super(sb, group) ? in verify_group_input()
33 (1 + ext3_bg_num_gdb(sb, group) + in verify_group_input()
46 ext3_bg_has_super(sb, input->group) ? "normal" : in verify_group_input()
47 "no-super", input->group, input->blocks_count, in verify_group_input()
50 if (group != sbi->s_groups_count) in verify_group_input()
53 input->group, sbi->s_groups_count); in verify_group_input()
195 ext3_fsblk_t start = ext3_group_first_block_no(sb, input->group); in setup_new_group_blocks()
196 int reserved_gdb = ext3_bg_has_super(sb, input->group) ? in setup_new_group_blocks()
198 unsigned long gdblocks = ext3_bg_num_gdb(sb, input->group); in setup_new_group_blocks()
[all …]
/fs/ext4/
Dialloc.c316 ext4_group_t group; in find_group_dir() local
322 for (group = 0; group < ngroups; group++) { in find_group_dir()
323 desc = ext4_get_group_desc(sb, group, NULL); in find_group_dir()
331 *best_group = group; in find_group_dir()
442 ext4_group_t *group) in find_group_orlov() argument
484 *group = grp; in find_group_orlov()
510 *group = (parent_group + i) % ngroups; in find_group_orlov()
511 desc = ext4_get_group_desc(sb, *group, NULL); in find_group_orlov()
525 *group = (parent_group + i) % ngroups; in find_group_orlov()
526 desc = ext4_get_group_desc(sb, *group, NULL); in find_group_orlov()
[all …]
Dgroup.h12 extern __le16 ext4_group_desc_csum(struct ext4_sb_info *sbi, __u32 group,
14 extern int ext4_group_desc_csum_verify(struct ext4_sb_info *sbi, __u32 group,
20 ext4_group_t group,
22 #define ext4_free_blocks_after_init(sb, group, desc) \ argument
23 ext4_init_block_bitmap(sb, NULL, group, desc)
26 ext4_group_t group,
Dresize.c30 ext4_group_t group = input->group; in verify_group_input() local
32 unsigned overhead = ext4_bg_has_super(sb, group) ? in verify_group_input()
33 (1 + ext4_bg_num_gdb(sb, group) + in verify_group_input()
46 ext4_bg_has_super(sb, input->group) ? "normal" : in verify_group_input()
47 "no-super", input->group, input->blocks_count, in verify_group_input()
51 if (group != sbi->s_groups_count) in verify_group_input()
54 input->group, sbi->s_groups_count); in verify_group_input()
179 ext4_fsblk_t start = ext4_group_first_block_no(sb, input->group); in setup_new_group_blocks()
180 int reserved_gdb = ext4_bg_has_super(sb, input->group) ? in setup_new_group_blocks()
182 unsigned long gdblocks = ext4_bg_num_gdb(sb, input->group); in setup_new_group_blocks()
[all …]
Dmballoc.c337 ext4_group_t group);
339 ext4_group_t group);
674 void *buddy, void *bitmap, ext4_group_t group) in ext4_mb_generate_buddy() argument
676 struct ext4_group_info *grp = ext4_get_group_info(sb, group); in ext4_mb_generate_buddy()
705 ext4_grp_locked_error(sb, group, __func__, in ext4_mb_generate_buddy()
707 group, free, grp->bb_free); in ext4_mb_generate_buddy()
852 int group; in ext4_mb_init_cache() local
855 group = (first_block + i) >> 1; in ext4_mb_init_cache()
856 if (group >= EXT4_SB(sb)->s_groups_count) in ext4_mb_init_cache()
866 bitmap = bh[group - first_group]->b_data; in ext4_mb_init_cache()
[all …]
Dballoc.c728 static int ext4_group_sparse(ext4_group_t group) in ext4_group_sparse() argument
730 if (group <= 1) in ext4_group_sparse()
732 if (!(group & 1)) in ext4_group_sparse()
734 return (test_root(group, 7) || test_root(group, 5) || in ext4_group_sparse()
735 test_root(group, 3)); in ext4_group_sparse()
746 int ext4_bg_has_super(struct super_block *sb, ext4_group_t group) in ext4_bg_has_super() argument
750 !ext4_group_sparse(group)) in ext4_bg_has_super()
756 ext4_group_t group) in ext4_bg_num_gdb_meta() argument
758 unsigned long metagroup = group / EXT4_DESC_PER_BLOCK(sb); in ext4_bg_num_gdb_meta()
762 if (group == first || group == first + 1 || group == last) in ext4_bg_num_gdb_meta()
[all …]
Dext4.h261 __u32 group; /* Group number for this data */ member
272 __u32 group; member
1008 extern int ext4_bg_has_super(struct super_block *sb, ext4_group_t group);
1010 ext4_group_t group);
1224 ext4_group_t group) in ext4_get_group_info() argument
1229 indexv = group >> (EXT4_DESC_PER_BLOCK_BITS(sb)); in ext4_get_group_info()
1230 indexh = group & ((EXT4_DESC_PER_BLOCK(sb)) - 1); in ext4_get_group_info()
1294 static inline void ext4_lock_group(struct super_block *sb, ext4_group_t group) in ext4_lock_group() argument
1296 struct ext4_group_info *grinfo = ext4_get_group_info(sb, group); in ext4_lock_group()
1302 ext4_group_t group) in ext4_unlock_group() argument
[all …]
/fs/configfs/
Ddir.c538 static void detach_groups(struct config_group *group) in detach_groups() argument
540 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups()
582 struct config_group *group) in create_default_group() argument
590 if (!group->cg_item.ci_name) in create_default_group()
591 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
592 name.name = group->cg_item.ci_name; in create_default_group()
602 &group->cg_item, child); in create_default_group()
615 static int populate_groups(struct config_group *group) in populate_groups() argument
621 if (group->default_groups) { in populate_groups()
622 for (i = 0; group->default_groups[i]; i++) { in populate_groups()
[all …]
Ditem.c125 void config_group_init_type_name(struct config_group *group, const char *name, in config_group_init_type_name() argument
128 config_item_set_name(&group->cg_item, name); in config_group_init_type_name()
129 group->cg_item.ci_type = type; in config_group_init_type_name()
130 config_group_init(group); in config_group_init_type_name()
180 void config_group_init(struct config_group *group) in config_group_init() argument
182 config_item_init(&group->cg_item); in config_group_init()
183 INIT_LIST_HEAD(&group->cg_children); in config_group_init()
195 struct config_item *config_group_find_item(struct config_group *group, in config_group_find_item() argument
201 list_for_each(entry,&group->cg_children) { in config_group_find_item()
/fs/ocfs2/
Dresize.c101 struct ocfs2_group_desc *group; in ocfs2_update_last_group_and_inode() local
116 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_update_last_group_and_inode()
120 le16_add_cpu(&group->bg_bits, num_bits); in ocfs2_update_last_group_and_inode()
121 le16_add_cpu(&group->bg_free_bits_count, num_bits); in ocfs2_update_last_group_and_inode()
130 group, in ocfs2_update_last_group_and_inode()
134 le16_add_cpu(&group->bg_free_bits_count, -1 * backups); in ocfs2_update_last_group_and_inode()
151 chain = le16_to_cpu(group->bg_chain); in ocfs2_update_last_group_and_inode()
174 group, in ocfs2_update_last_group_and_inode()
178 le16_add_cpu(&group->bg_free_bits_count, backups); in ocfs2_update_last_group_and_inode()
179 le16_add_cpu(&group->bg_bits, -1 * num_bits); in ocfs2_update_last_group_and_inode()
[all …]
Dstackglue.c312 const char *group, in ocfs2_cluster_connect() argument
322 BUG_ON(group == NULL); in ocfs2_cluster_connect()
338 memcpy(new_conn->cc_name, group, grouplen); in ocfs2_cluster_connect()
393 static void ocfs2_leave_group(const char *group) in ocfs2_leave_group() argument
401 argv[3] = (char *)group; in ocfs2_leave_group()
425 void ocfs2_cluster_hangup(const char *group, int grouplen) in ocfs2_cluster_hangup() argument
427 BUG_ON(group == NULL); in ocfs2_cluster_hangup()
428 BUG_ON(group[grouplen] != '\0'); in ocfs2_cluster_hangup()
430 ocfs2_leave_group(group); in ocfs2_cluster_hangup()
Dstackglue.h230 const char *group,
238 void ocfs2_cluster_hangup(const char *group, int grouplen);
Dsuballoc.h130 u64 group = block - (u64) bit; in ocfs2_which_suballoc_group() local
132 return group; in ocfs2_which_suballoc_group()
/fs/dlm/
Dconfig.c90 struct config_group group; member
268 struct config_group group; member
385 return i ? container_of(to_config_group(i), struct dlm_cluster, group) : in config_item_to_cluster()
391 return i ? container_of(to_config_group(i), struct dlm_space, group) : in config_item_to_space()
421 config_group_init_type_name(&cl->group, name, &cluster_type); in make_cluster()
425 cl->group.default_groups = gps; in make_cluster()
426 cl->group.default_groups[0] = &sps->ss_group; in make_cluster()
427 cl->group.default_groups[1] = &cms->cs_group; in make_cluster()
428 cl->group.default_groups[2] = NULL; in make_cluster()
444 return &cl->group; in make_cluster()
[all …]
/fs/nfsd/
Dnfs4acl.c176 unsigned short group; member
203 pas->group = pa->e_perm; in summarize_posix_acl()
221 pas->group &= pas->mask; in summarize_posix_acl()
249 deny &= pas.users | pas.group | pas.groups | pas.other; in _posix_to_nfsv4_one()
269 deny &= pas.groups | pas.group | pas.other; in _posix_to_nfsv4_one()
299 ace->access_mask = mask_from_posix(pas.group, flags); in _posix_to_nfsv4_one()
321 deny = ~pas.group & pas.other; in _posix_to_nfsv4_one()
425 struct posix_ace_state group; member
548 error = check_deny(state->group.deny, 0); in posix_state_to_acl()
551 low_mode_from_nfs4(state->group.allow, &pace->e_perm, flags); in posix_state_to_acl()
[all …]
/fs/ocfs2/cluster/
Dnodemanager.c466 static struct o2nm_node_group *to_o2nm_node_group(struct config_group *group)
468 return group ?
469 container_of(group, struct o2nm_node_group, ns_group)
647 static struct config_item *o2nm_node_group_make_item(struct config_group *group, in o2nm_node_group_make_item() argument
666 static void o2nm_node_group_drop_item(struct config_group *group, in o2nm_node_group_drop_item() argument
670 struct o2nm_cluster *cluster = to_o2nm_cluster(group->cg_item.ci_parent); in o2nm_node_group_drop_item()
739 static struct o2nm_cluster_group *to_o2nm_cluster_group(struct config_group *group)
741 return group ?
742 container_of(to_configfs_subsystem(group), struct o2nm_cluster_group, cs_subsys)
747 static struct config_group *o2nm_cluster_group_make_group(struct config_group *group, in o2nm_cluster_group_make_group() argument
[all …]
/fs/sysfs/
Dfile.c551 const struct attribute *attr, const char *group) in sysfs_add_file_to_group() argument
556 if (group) in sysfs_add_file_to_group()
557 dir_sd = sysfs_get_dirent(kobj->sd, group); in sysfs_add_file_to_group()
646 const struct attribute *attr, const char *group) in sysfs_remove_file_from_group() argument
650 if (group) in sysfs_remove_file_from_group()
651 dir_sd = sysfs_get_dirent(kobj->sd, group); in sysfs_remove_file_from_group()
/fs/
Dopen.c665 static int chown_common(struct dentry * dentry, uid_t user, gid_t group) in chown_common() argument
676 if (group != (gid_t) -1) { in chown_common()
678 newattrs.ia_gid = group; in chown_common()
690 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
701 error = chown_common(path.dentry, user, group); in SYSCALL_DEFINE3()
710 gid_t, group, int, flag) in SYSCALL_DEFINE5() argument
726 error = chown_common(path.dentry, user, group); in SYSCALL_DEFINE5()
734 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
745 error = chown_common(path.dentry, user, group); in SYSCALL_DEFINE3()
753 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
[all …]
/fs/afs/
Dafs.h123 u32 group; /* group ID */ member
140 u32 group; /* group ID */ member
/fs/partitions/
Dldm.h106 u32 group; member
180 u32 group; member

123