Home
last modified time | relevance | path

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

1234

/fs/notify/
Dgroup.c22 static void fsnotify_final_destroy_group(struct fsnotify_group *group) in fsnotify_final_destroy_group() argument
24 if (group->ops->free_group_priv) in fsnotify_final_destroy_group()
25 group->ops->free_group_priv(group); in fsnotify_final_destroy_group()
27 mem_cgroup_put(group->memcg); in fsnotify_final_destroy_group()
29 kfree(group); in fsnotify_final_destroy_group()
36 void fsnotify_group_stop_queueing(struct fsnotify_group *group) in fsnotify_group_stop_queueing() argument
38 spin_lock(&group->notification_lock); in fsnotify_group_stop_queueing()
39 group->shutdown = true; in fsnotify_group_stop_queueing()
40 spin_unlock(&group->notification_lock); in fsnotify_group_stop_queueing()
49 void fsnotify_destroy_group(struct fsnotify_group *group) in fsnotify_destroy_group() argument
[all …]
Dnotification.c51 bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group) in fsnotify_notify_queue_is_empty() argument
53 assert_spin_locked(&group->notification_lock); in fsnotify_notify_queue_is_empty()
54 return list_empty(&group->notification_list) ? true : false; in fsnotify_notify_queue_is_empty()
57 void fsnotify_destroy_event(struct fsnotify_group *group, in fsnotify_destroy_event() argument
61 if (!event || event == group->overflow_event) in fsnotify_destroy_event()
70 spin_lock(&group->notification_lock); in fsnotify_destroy_event()
72 spin_unlock(&group->notification_lock); in fsnotify_destroy_event()
74 group->ops->free_event(event); in fsnotify_destroy_event()
84 int fsnotify_add_event(struct fsnotify_group *group, in fsnotify_add_event() argument
90 struct list_head *list = &group->notification_list; in fsnotify_add_event()
[all …]
Dmark.c201 struct fsnotify_group *group = mark->group; in fsnotify_final_mark_destroy() local
203 if (WARN_ON_ONCE(!group)) in fsnotify_final_mark_destroy()
205 group->ops->free_mark(mark); in fsnotify_final_mark_destroy()
206 fsnotify_put_group(group); in fsnotify_final_mark_destroy()
297 atomic_inc(&mark->group->user_waits); in fsnotify_get_mark_safe()
315 struct fsnotify_group *group = mark->group; in fsnotify_put_mark_wake() local
322 if (atomic_dec_and_test(&group->user_waits) && group->shutdown) in fsnotify_put_mark_wake()
323 wake_up(&group->notification_waitq); in fsnotify_put_mark_wake()
373 struct fsnotify_group *group = mark->group; in fsnotify_detach_mark() local
375 WARN_ON_ONCE(!mutex_is_locked(&group->mark_mutex)); in fsnotify_detach_mark()
[all …]
Dfdinfo.c29 struct fsnotify_group *group = f->private_data; in show_fdinfo() local
32 mutex_lock(&group->mark_mutex); in show_fdinfo()
33 list_for_each_entry(mark, &group->marks_list, g_list) { in show_fdinfo()
38 mutex_unlock(&group->mark_mutex); in show_fdinfo()
145 struct fsnotify_group *group = f->private_data; in fanotify_show_fdinfo() local
148 group->fanotify_data.flags, group->fanotify_data.f_flags); in fanotify_show_fdinfo()
Dfsnotify.c192 struct fsnotify_group *group = NULL; in send_to_group() local
220 group = mark->group; in send_to_group()
228 __func__, group, to_tell, mask, marks_mask, marks_ignored_mask, in send_to_group()
234 return group->ops->handle_event(group, to_tell, mask, data, data_is, in send_to_group()
278 fsnotify_compare_groups(max_prio_group, mark->group) > 0) in fsnotify_iter_select_report_types()
279 max_prio_group = mark->group; in fsnotify_iter_select_report_types()
290 fsnotify_compare_groups(max_prio_group, mark->group) == 0) in fsnotify_iter_select_report_types()
/fs/notify/fanotify/
Dfanotify_user.c70 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument
76 pr_debug("%s: group=%p count=%zd\n", __func__, group, count); in get_one_event()
78 spin_lock(&group->notification_lock); in get_one_event()
79 if (fsnotify_notify_queue_is_empty(group)) in get_one_event()
82 if (FAN_GROUP_FLAG(group, FAN_REPORT_FID)) { in get_one_event()
84 FANOTIFY_E(fsnotify_peek_first_event(group))); in get_one_event()
91 fsn_event = fsnotify_remove_first_event(group); in get_one_event()
95 spin_unlock(&group->notification_lock); in get_one_event()
99 static int create_fd(struct fsnotify_group *group, in create_fd() argument
106 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in create_fd()
[all …]
Dfanotify.c87 static int fanotify_get_response(struct fsnotify_group *group, in fanotify_get_response() argument
93 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in fanotify_get_response()
95 ret = wait_event_killable(group->fanotify_data.access_waitq, in fanotify_get_response()
99 spin_lock(&group->notification_lock); in fanotify_get_response()
104 spin_unlock(&group->notification_lock); in fanotify_get_response()
109 fsnotify_remove_queued_event(group, &event->fae.fse); in fanotify_get_response()
115 spin_unlock(&group->notification_lock); in fanotify_get_response()
134 group, event, ret); in fanotify_get_response()
136 fsnotify_destroy_event(group, &event->fae.fse); in fanotify_get_response()
147 static u32 fanotify_group_event_mask(struct fsnotify_group *group, in fanotify_group_event_mask() argument
[all …]
/fs/notify/inotify/
Dinotify_user.c103 struct fsnotify_group *group = file->private_data; in inotify_poll() local
106 poll_wait(file, &group->notification_waitq, wait); in inotify_poll()
107 spin_lock(&group->notification_lock); in inotify_poll()
108 if (!fsnotify_notify_queue_is_empty(group)) in inotify_poll()
110 spin_unlock(&group->notification_lock); in inotify_poll()
132 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument
138 if (fsnotify_notify_queue_is_empty(group)) in get_one_event()
141 event = fsnotify_peek_first_event(group); in get_one_event()
143 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in get_one_event()
151 fsnotify_remove_first_event(group); in get_one_event()
[all …]
Dinotify_fsnotify.c58 int inotify_handle_event(struct fsnotify_group *group, in inotify_handle_event() argument
87 pr_debug("%s: group=%p inode=%p mask=%x\n", __func__, group, inode, in inotify_handle_event()
98 memalloc_use_memcg(group->memcg); in inotify_handle_event()
107 fsnotify_queue_overflow(group); in inotify_handle_event()
129 ret = fsnotify_add_event(group, fsn_event, inotify_merge); in inotify_handle_event()
132 fsnotify_destroy_event(group, fsn_event); in inotify_handle_event()
136 fsnotify_destroy_mark(inode_mark, group); in inotify_handle_event()
141 static void inotify_freeing_mark(struct fsnotify_mark *fsn_mark, struct fsnotify_group *group) in inotify_freeing_mark() argument
143 inotify_ignored_and_remove_idr(fsn_mark, group); in inotify_freeing_mark()
177 fsn_mark->group, i_mark->wd); in idr_callback()
[all …]
/fs/ext2/
Dialloc.c66 static void ext2_release_inode(struct super_block *sb, int group, int dir) in ext2_release_inode() argument
71 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode()
74 "can't get descriptor for group %d", group); in ext2_release_inode()
78 spin_lock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode()
82 spin_unlock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode()
208 int group, best_group = -1; in find_group_dir() local
210 for (group = 0; group < ngroups; group++) { in find_group_dir()
211 desc = ext2_get_group_desc (sb, group, NULL); in find_group_dir()
219 best_group = group; in find_group_dir()
269 int group = -1, i; in find_group_orlov() local
[all …]
Dballoc.c267 unsigned int group, struct super_block * sb) in goal_in_my_reservation() argument
271 group_first_block = ext2_group_first_block_no(sb, group); in goal_in_my_reservation()
664 ext2_try_to_allocate(struct super_block *sb, int group, in ext2_try_to_allocate() argument
675 group_first_block = ext2_group_first_block_no(sb, group); in ext2_try_to_allocate()
716 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), grp_goal, in ext2_try_to_allocate()
731 && !ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), in ext2_try_to_allocate()
900 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument
910 group_first_block = ext2_group_first_block_no(sb, group); in alloc_new_reservation()
1092 ext2_try_to_allocate_with_rsv(struct super_block *sb, unsigned int group, in ext2_try_to_allocate_with_rsv() argument
1108 return ext2_try_to_allocate(sb, group, bitmap_bh, in ext2_try_to_allocate_with_rsv()
[all …]
/fs/ext4/
Dresize.c64 ext4_group_t group) { in ext4_meta_bg_first_group() argument
65 return (group >> EXT4_DESC_PER_BLOCK_BITS(sb)) << in ext4_meta_bg_first_group()
70 ext4_group_t group) { in ext4_meta_bg_first_block_no() argument
71 group = ext4_meta_bg_first_group(sb, group); in ext4_meta_bg_first_block_no()
72 return ext4_group_first_block_no(sb, group); in ext4_meta_bg_first_block_no()
76 ext4_group_t group) { in ext4_group_overhead_blocks() argument
78 overhead = ext4_bg_num_gdb(sb, group); in ext4_group_overhead_blocks()
79 if (ext4_bg_has_super(sb, group)) in ext4_group_overhead_blocks()
95 ext4_group_t group = input->group; in verify_group_input() local
103 if (group != sbi->s_groups_count) { in verify_group_input()
[all …]
Dialloc.c411 ext4_group_t *group, umode_t mode, in find_group_orlov() argument
477 *group = grp; in find_group_orlov()
494 *group = grp+i; in find_group_orlov()
540 *group = grp; in find_group_orlov()
559 ext4_group_t *group, umode_t mode) in find_group_other() argument
584 *group = i; in find_group_other()
598 *group = parent_group + flex_size; in find_group_other()
599 if (*group > ngroups) in find_group_other()
600 *group = 0; in find_group_other()
601 return find_group_orlov(sb, parent, group, mode, NULL); in find_group_other()
[all …]
Dmballoc.c356 ext4_group_t group);
358 ext4_group_t group);
712 void *buddy, void *bitmap, ext4_group_t group) in ext4_mb_generate_buddy() argument
714 struct ext4_group_info *grp = ext4_get_group_info(sb, group); in ext4_mb_generate_buddy()
744 ext4_grp_locked_error(sb, group, 0, 0, in ext4_mb_generate_buddy()
753 ext4_mark_group_bitmap_corrupted(sb, group, in ext4_mb_generate_buddy()
813 ext4_group_t first_group, group; in ext4_mb_init_cache() local
849 for (i = 0, group = first_group; i < groups_per_page; i++, group++) { in ext4_mb_init_cache()
850 if (group >= ngroups) in ext4_mb_init_cache()
853 grinfo = ext4_get_group_info(sb, group); in ext4_mb_init_cache()
[all …]
Dballoc.c38 ext4_group_t group; in ext4_get_group_number() local
41 group = (block - in ext4_get_group_number()
45 ext4_get_group_no_and_offset(sb, block, &group, NULL); in ext4_get_group_number()
46 return group; in ext4_get_group_number()
761 int ext4_bg_has_super(struct super_block *sb, ext4_group_t group) in ext4_bg_has_super() argument
765 if (group == 0) in ext4_bg_has_super()
768 if (group == le32_to_cpu(es->s_backup_bgs[0]) || in ext4_bg_has_super()
769 group == le32_to_cpu(es->s_backup_bgs[1])) in ext4_bg_has_super()
773 if ((group <= 1) || !ext4_has_feature_sparse_super(sb)) in ext4_bg_has_super()
775 if (!(group & 1)) in ext4_bg_has_super()
[all …]
Dbitmap.c19 int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, in ext4_inode_bitmap_csum_verify() argument
41 void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group, in ext4_inode_bitmap_csum_set() argument
57 int ext4_block_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, in ext4_block_bitmap_csum_verify() argument
83 void ext4_block_bitmap_csum_set(struct super_block *sb, ext4_group_t group, in ext4_block_bitmap_csum_set() argument
/fs/nilfs2/
Dalloc.c85 __u64 group = nr; in nilfs_palloc_group() local
87 *offset = do_div(group, nilfs_palloc_entries_per_group(inode)); in nilfs_palloc_group()
88 return group; in nilfs_palloc_group()
100 nilfs_palloc_desc_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_desc_blkoff() argument
103 group / nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_desc_blkoff()
116 nilfs_palloc_bitmap_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_bitmap_blkoff() argument
119 group % nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_bitmap_blkoff()
120 return nilfs_palloc_desc_blkoff(inode, group) + 1 + in nilfs_palloc_bitmap_blkoff()
168 unsigned long group, group_offset; in nilfs_palloc_entry_blkoff() local
170 group = nilfs_palloc_group(inode, nr, &group_offset); in nilfs_palloc_entry_blkoff()
[all …]
/fs/configfs/
Ddir.c632 static void detach_groups(struct config_group *group) in detach_groups() argument
634 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups()
677 struct config_group *group, in create_default_group() argument
685 if (!group->cg_item.ci_name) in create_default_group()
686 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
689 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
694 &group->cg_item, child, frag); in create_default_group()
708 static int populate_groups(struct config_group *group, in populate_groups() argument
714 list_for_each_entry(new_group, &group->default_groups, group_entry) { in populate_groups()
715 ret = create_default_group(group, new_group, frag); in populate_groups()
[all …]
Ditem.c94 void config_group_init_type_name(struct config_group *group, const char *name, in config_group_init_type_name() argument
97 config_item_set_name(&group->cg_item, "%s", name); in config_group_init_type_name()
98 group->cg_item.ci_type = type; in config_group_init_type_name()
99 config_group_init(group); in config_group_init_type_name()
159 void config_group_init(struct config_group *group) in config_group_init() argument
161 config_item_init(&group->cg_item); in config_group_init()
162 INIT_LIST_HEAD(&group->cg_children); in config_group_init()
163 INIT_LIST_HEAD(&group->default_groups); in config_group_init()
176 struct config_item *config_group_find_item(struct config_group *group, in config_group_find_item() argument
182 list_for_each(entry, &group->cg_children) { in config_group_find_item()
/fs/ocfs2/
Dresize.c91 struct ocfs2_group_desc *group; in ocfs2_update_last_group_and_inode() local
107 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_update_last_group_and_inode()
109 old_bg_clusters = le16_to_cpu(group->bg_bits) / cl_bpc; in ocfs2_update_last_group_and_inode()
112 le16_add_cpu(&group->bg_bits, num_bits); in ocfs2_update_last_group_and_inode()
113 le16_add_cpu(&group->bg_free_bits_count, num_bits); in ocfs2_update_last_group_and_inode()
122 group, in ocfs2_update_last_group_and_inode()
124 le16_add_cpu(&group->bg_free_bits_count, -1 * backups); in ocfs2_update_last_group_and_inode()
137 chain = le16_to_cpu(group->bg_chain); in ocfs2_update_last_group_and_inode()
160 group, in ocfs2_update_last_group_and_inode()
162 le16_add_cpu(&group->bg_free_bits_count, backups); in ocfs2_update_last_group_and_inode()
[all …]
Dstackglue.c306 const char *group, in ocfs2_cluster_connect() argument
317 BUG_ON(group == NULL); in ocfs2_cluster_connect()
339 strlcpy(new_conn->cc_name, group, GROUP_NAME_MAX + 1); in ocfs2_cluster_connect()
375 int ocfs2_cluster_connect_agnostic(const char *group, in ocfs2_cluster_connect_agnostic() argument
387 return ocfs2_cluster_connect(stack_name, NULL, 0, group, grouplen, in ocfs2_cluster_connect_agnostic()
418 static void ocfs2_leave_group(const char *group) in ocfs2_leave_group() argument
426 argv[3] = (char *)group; in ocfs2_leave_group()
450 void ocfs2_cluster_hangup(const char *group, int grouplen) in ocfs2_cluster_hangup() argument
452 BUG_ON(group == NULL); in ocfs2_cluster_hangup()
453 BUG_ON(group[grouplen] != '\0'); in ocfs2_cluster_hangup()
[all …]
/fs/nfsd/
Dnfs4acl.c182 unsigned short group; member
209 pas->group = pa->e_perm; in summarize_posix_acl()
227 pas->group &= pas->mask; in summarize_posix_acl()
255 deny &= pas.users | pas.group | pas.groups | pas.other; in _posix_to_nfsv4_one()
275 deny &= pas.groups | pas.group | pas.other; in _posix_to_nfsv4_one()
305 ace->access_mask = mask_from_posix(pas.group, flags); in _posix_to_nfsv4_one()
327 deny = ~pas.group & pas.other; in _posix_to_nfsv4_one()
446 struct posix_ace_state group; member
534 low_mode_from_nfs4(state->group.allow, &pace->e_perm, flags); in posix_state_to_acl()
535 add_to_mask(state, &state->group); in posix_state_to_acl()
[all …]
/fs/dlm/
Dconfig.c66 struct config_group group; member
85 return i ? container_of(to_config_group(i), struct dlm_cluster, group) : in config_item_to_cluster()
215 struct config_group group; member
328 return i ? container_of(to_config_group(i), struct dlm_space, group) : in config_item_to_space()
356 config_group_init_type_name(&cl->group, name, &cluster_type); in make_cluster()
360 configfs_add_default_group(&sps->ss_group, &cl->group); in make_cluster()
361 configfs_add_default_group(&cms->cs_group, &cl->group); in make_cluster()
381 return &cl->group; in make_cluster()
394 configfs_remove_default_groups(&cl->group); in drop_cluster()
419 config_group_init_type_name(&sp->group, name, &space_type); in make_space()
[all …]
/fs/sdcardfs/
Dpackagelist.c368 static void remove_ext_gid_entry_locked(const struct qstr *key, gid_t group) in remove_ext_gid_entry_locked() argument
374 if (qstr_case_eq(key, &hash_cur->key) && atomic_read(&hash_cur->value) == group) { in remove_ext_gid_entry_locked()
383 static void remove_ext_gid_entry(const struct qstr *key, gid_t group) in remove_ext_gid_entry() argument
386 remove_ext_gid_entry_locked(key, group); in remove_ext_gid_entry()
606 struct config_group group; member
618 return item ? container_of(to_config_group(item), struct extensions_value, group) : NULL; in to_extensions_value()
646 static struct config_item *extension_details_make_item(struct config_group *group, const char *name) in extension_details_make_item() argument
648 struct extensions_value *extensions_value = to_extensions_value(&group->cg_item); in extension_details_make_item()
684 static struct config_group *extensions_make_group(struct config_group *group, const char *name) in extensions_make_group() argument
700 config_group_init_type_name(&extensions_value->group, name, in extensions_make_group()
[all …]
/fs/ocfs2/cluster/
Dnodemanager.c418 static struct o2nm_node_group *to_o2nm_node_group(struct config_group *group)
420 return group ?
421 container_of(group, struct o2nm_node_group, ns_group)
583 static struct config_item *o2nm_node_group_make_item(struct config_group *group, in o2nm_node_group_make_item() argument
604 static void o2nm_node_group_drop_item(struct config_group *group, in o2nm_node_group_drop_item() argument
608 struct o2nm_cluster *cluster = to_o2nm_cluster(group->cg_item.ci_parent); in o2nm_node_group_drop_item()
679 static struct o2nm_cluster_group *to_o2nm_cluster_group(struct config_group *group)
681 return group ?
682 container_of(to_configfs_subsystem(group), struct o2nm_cluster_group, cs_subsys)
687 static struct config_group *o2nm_cluster_group_make_group(struct config_group *group, in o2nm_cluster_group_make_group() argument
[all …]

1234