Home
last modified time | relevance | path

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

123

/fs/notify/
Dgroup.c34 static void fsnotify_final_destroy_group(struct fsnotify_group *group) in fsnotify_final_destroy_group() argument
36 if (group->ops->free_group_priv) in fsnotify_final_destroy_group()
37 group->ops->free_group_priv(group); in fsnotify_final_destroy_group()
39 kfree(group); in fsnotify_final_destroy_group()
46 void fsnotify_group_stop_queueing(struct fsnotify_group *group) in fsnotify_group_stop_queueing() argument
48 spin_lock(&group->notification_lock); in fsnotify_group_stop_queueing()
49 group->shutdown = true; in fsnotify_group_stop_queueing()
50 spin_unlock(&group->notification_lock); in fsnotify_group_stop_queueing()
59 void fsnotify_destroy_group(struct fsnotify_group *group) in fsnotify_destroy_group() argument
67 fsnotify_group_stop_queueing(group); in fsnotify_destroy_group()
[all …]
Dnotification.c64 bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group) in fsnotify_notify_queue_is_empty() argument
66 assert_spin_locked(&group->notification_lock); in fsnotify_notify_queue_is_empty()
67 return list_empty(&group->notification_list) ? true : false; in fsnotify_notify_queue_is_empty()
70 void fsnotify_destroy_event(struct fsnotify_group *group, in fsnotify_destroy_event() argument
83 spin_lock(&group->notification_lock); in fsnotify_destroy_event()
85 spin_unlock(&group->notification_lock); in fsnotify_destroy_event()
87 group->ops->free_event(event); in fsnotify_destroy_event()
97 int fsnotify_add_event(struct fsnotify_group *group, in fsnotify_add_event() argument
103 struct list_head *list = &group->notification_list; in fsnotify_add_event()
105 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in fsnotify_add_event()
[all …]
Dmark.c111 if (mark->group) in fsnotify_put_mark()
112 fsnotify_put_group(mark->group); in fsnotify_put_mark()
137 struct fsnotify_group *group = mark->group; in fsnotify_detach_mark() local
139 BUG_ON(!mutex_is_locked(&group->mark_mutex)); in fsnotify_detach_mark()
172 atomic_dec(&group->num_marks); in fsnotify_detach_mark()
186 struct fsnotify_group *group = mark->group; in __fsnotify_free_mark() local
202 if (group->ops->freeing_mark) in __fsnotify_free_mark()
203 group->ops->freeing_mark(mark, group); in __fsnotify_free_mark()
226 struct fsnotify_group *group) in fsnotify_destroy_mark() argument
228 mutex_lock_nested(&group->mark_mutex, SINGLE_DEPTH_NESTING); in fsnotify_destroy_mark()
[all …]
Dfdinfo.c27 struct fsnotify_group *group = f->private_data; in show_fdinfo() local
30 mutex_lock(&group->mark_mutex); in show_fdinfo()
31 list_for_each_entry(mark, &group->marks_list, g_list) { in show_fdinfo()
36 mutex_unlock(&group->mark_mutex); in show_fdinfo()
142 struct fsnotify_group *group = f->private_data; in fanotify_show_fdinfo() local
145 switch (group->priority) { in fanotify_show_fdinfo()
157 if (group->max_events == UINT_MAX) in fanotify_show_fdinfo()
160 if (group->fanotify_data.max_marks == UINT_MAX) in fanotify_show_fdinfo()
164 flags, group->fanotify_data.f_flags); in fanotify_show_fdinfo()
Dvfsmount_mark.c32 void fsnotify_clear_vfsmount_marks_by_group(struct fsnotify_group *group) in fsnotify_clear_vfsmount_marks_by_group() argument
34 fsnotify_clear_marks_by_group_flags(group, FSNOTIFY_MARK_FLAG_VFSMOUNT); in fsnotify_clear_vfsmount_marks_by_group()
55 BUG_ON(!mutex_is_locked(&mark->group->mark_mutex)); in fsnotify_destroy_vfsmount_mark()
71 struct fsnotify_mark *fsnotify_find_vfsmount_mark(struct fsnotify_group *group, in fsnotify_find_vfsmount_mark() argument
78 mark = fsnotify_find_mark(&m->mnt_fsnotify_marks, group); in fsnotify_find_vfsmount_mark()
90 struct fsnotify_group *group, struct vfsmount *mnt, in fsnotify_add_vfsmount_mark() argument
98 BUG_ON(!mutex_is_locked(&group->mark_mutex)); in fsnotify_add_vfsmount_mark()
Dfsnotify.c136 struct fsnotify_group *group = NULL; in send_to_group() local
157 group = inode_mark->group; in send_to_group()
166 group = vfsmount_mark->group; in send_to_group()
176 __func__, group, to_tell, mask, inode_mark, in send_to_group()
183 return group->ops->handle_event(group, to_tell, inode_mark, in send_to_group()
259 inode_group = inode_mark->group; in fsnotify()
265 vfsmount_group = vfsmount_mark->group; in fsnotify()
Dinode_mark.c50 BUG_ON(!mutex_is_locked(&mark->group->mark_mutex)); in fsnotify_destroy_inode_mark()
70 void fsnotify_clear_inode_marks_by_group(struct fsnotify_group *group) in fsnotify_clear_inode_marks_by_group() argument
72 fsnotify_clear_marks_by_group_flags(group, FSNOTIFY_MARK_FLAG_INODE); in fsnotify_clear_inode_marks_by_group()
79 struct fsnotify_mark *fsnotify_find_inode_mark(struct fsnotify_group *group, in fsnotify_find_inode_mark() argument
85 mark = fsnotify_find_mark(&inode->i_fsnotify_marks, group); in fsnotify_find_inode_mark()
124 struct fsnotify_group *group, struct inode *inode, in fsnotify_add_inode_mark() argument
131 BUG_ON(!mutex_is_locked(&group->mark_mutex)); in fsnotify_add_inode_mark()
Dfsnotify.h12 extern void fsnotify_flush_notify(struct fsnotify_group *group);
32 struct fsnotify_group *group, struct inode *inode,
36 struct fsnotify_group *group, struct vfsmount *mnt,
45 struct fsnotify_group *group);
60 extern void fsnotify_detach_group_marks(struct fsnotify_group *group);
/fs/notify/fanotify/
Dfanotify_user.c54 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument
57 assert_spin_locked(&group->notification_lock); in get_one_event()
59 pr_debug("%s: group=%p count=%zd\n", __func__, group, count); in get_one_event()
61 if (fsnotify_notify_queue_is_empty(group)) in get_one_event()
69 return fsnotify_remove_first_event(group); in get_one_event()
72 static int create_fd(struct fsnotify_group *group, in create_fd() argument
79 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in create_fd()
81 client_fd = get_unused_fd_flags(group->fanotify_data.f_flags); in create_fd()
93 group->fanotify_data.f_flags | FMODE_NONOTIFY, in create_fd()
114 static int fill_event_metadata(struct fsnotify_group *group, in fill_event_metadata() argument
[all …]
Dfanotify.c63 static int fanotify_get_response(struct fsnotify_group *group, in fanotify_get_response() argument
68 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in fanotify_get_response()
70 wait_event(group->fanotify_data.access_waitq, event->response); in fanotify_get_response()
84 group, event, ret); in fanotify_get_response()
172 static int fanotify_handle_event(struct fsnotify_group *group, in fanotify_handle_event() argument
198 pr_debug("%s: group=%p inode=%p mask=%x\n", __func__, group, inode, in fanotify_handle_event()
206 ret = fsnotify_add_event(group, fsn_event, fanotify_merge); in fanotify_handle_event()
211 fsnotify_destroy_event(group, fsn_event); in fanotify_handle_event()
218 ret = fanotify_get_response(group, FANOTIFY_PE(fsn_event)); in fanotify_handle_event()
219 fsnotify_destroy_event(group, fsn_event); in fanotify_handle_event()
[all …]
/fs/notify/inotify/
Dinotify_user.c114 struct fsnotify_group *group = file->private_data; in inotify_poll() local
117 poll_wait(file, &group->notification_waitq, wait); in inotify_poll()
118 spin_lock(&group->notification_lock); in inotify_poll()
119 if (!fsnotify_notify_queue_is_empty(group)) in inotify_poll()
121 spin_unlock(&group->notification_lock); in inotify_poll()
143 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument
149 if (fsnotify_notify_queue_is_empty(group)) in get_one_event()
152 event = fsnotify_peek_first_event(group); in get_one_event()
154 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in get_one_event()
162 fsnotify_remove_first_event(group); in get_one_event()
[all …]
Dinotify_fsnotify.c65 int inotify_handle_event(struct fsnotify_group *group, in inotify_handle_event() argument
93 pr_debug("%s: group=%p inode=%p mask=%x\n", __func__, group, inode, in inotify_handle_event()
111 ret = fsnotify_add_event(group, fsn_event, inotify_merge); in inotify_handle_event()
114 fsnotify_destroy_event(group, fsn_event); in inotify_handle_event()
118 fsnotify_destroy_mark(inode_mark, group); in inotify_handle_event()
123 static void inotify_freeing_mark(struct fsnotify_mark *fsn_mark, struct fsnotify_group *group) in inotify_freeing_mark() argument
125 inotify_ignored_and_remove_idr(fsn_mark, group); in inotify_freeing_mark()
159 fsn_mark->group, fsn_mark->inode, i_mark->wd); in idr_callback()
163 static void inotify_free_group_priv(struct fsnotify_group *group) in inotify_free_group_priv() argument
166 idr_for_each(&group->inotify_data.idr, idr_callback, group); in inotify_free_group_priv()
[all …]
/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()
209 int group, best_group = -1; in find_group_dir() local
211 for (group = 0; group < ngroups; group++) { in find_group_dir()
212 desc = ext2_get_group_desc (sb, group, NULL); in find_group_dir()
220 best_group = group; in find_group_dir()
272 int group = -1, i; in find_group_orlov() local
[all …]
Dballoc.c265 unsigned int group, struct super_block * sb) in goal_in_my_reservation() argument
269 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.c61 ext4_group_t group) { in ext4_meta_bg_first_group() argument
62 return (group >> EXT4_DESC_PER_BLOCK_BITS(sb)) << in ext4_meta_bg_first_group()
67 ext4_group_t group) { in ext4_meta_bg_first_block_no() argument
68 group = ext4_meta_bg_first_group(sb, group); in ext4_meta_bg_first_block_no()
69 return ext4_group_first_block_no(sb, group); in ext4_meta_bg_first_block_no()
73 ext4_group_t group) { in ext4_group_overhead_blocks() argument
75 overhead = ext4_bg_num_gdb(sb, group); in ext4_group_overhead_blocks()
76 if (ext4_bg_has_super(sb, group)) in ext4_group_overhead_blocks()
92 ext4_group_t group = input->group; in verify_group_input() local
100 if (group != sbi->s_groups_count) { in verify_group_input()
[all …]
Dialloc.c403 ext4_group_t *group, umode_t mode, in find_group_orlov() argument
469 *group = grp; in find_group_orlov()
486 *group = grp+i; in find_group_orlov()
532 *group = grp; in find_group_orlov()
551 ext4_group_t *group, umode_t mode) in find_group_other() argument
576 *group = i; in find_group_other()
590 *group = parent_group + flex_size; in find_group_other()
591 if (*group > ngroups) in find_group_other()
592 *group = 0; in find_group_other()
593 return find_group_orlov(sb, parent, group, mode, NULL); in find_group_other()
[all …]
Dmballoc.c367 ext4_group_t group);
369 ext4_group_t group);
723 void *buddy, void *bitmap, ext4_group_t group) in ext4_mb_generate_buddy() argument
725 struct ext4_group_info *grp = ext4_get_group_info(sb, group); in ext4_mb_generate_buddy()
755 ext4_grp_locked_error(sb, group, 0, 0, in ext4_mb_generate_buddy()
826 ext4_group_t first_group, group; in ext4_mb_init_cache() local
862 for (i = 0, group = first_group; i < groups_per_page; i++, group++) { in ext4_mb_init_cache()
863 if (group >= ngroups) in ext4_mb_init_cache()
866 grinfo = ext4_get_group_info(sb, group); in ext4_mb_init_cache()
877 bh[i] = ext4_read_block_bitmap_nowait(sb, group); in ext4_mb_init_cache()
[all …]
Dballoc.c37 ext4_group_t group; in ext4_get_group_number() local
40 group = (block - in ext4_get_group_number()
44 ext4_get_group_no_and_offset(sb, block, &group, NULL); in ext4_get_group_number()
45 return group; in ext4_get_group_number()
751 int ext4_bg_has_super(struct super_block *sb, ext4_group_t group) in ext4_bg_has_super() argument
755 if (group == 0) in ext4_bg_has_super()
758 if (group == le32_to_cpu(es->s_backup_bgs[0]) || in ext4_bg_has_super()
759 group == le32_to_cpu(es->s_backup_bgs[1])) in ext4_bg_has_super()
763 if ((group <= 1) || !ext4_has_feature_sparse_super(sb)) in ext4_bg_has_super()
765 if (!(group & 1)) in ext4_bg_has_super()
[all …]
/fs/nilfs2/
Dalloc.c94 __u64 group = nr; in nilfs_palloc_group() local
96 *offset = do_div(group, nilfs_palloc_entries_per_group(inode)); in nilfs_palloc_group()
97 return group; in nilfs_palloc_group()
109 nilfs_palloc_desc_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_desc_blkoff() argument
112 group / nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_desc_blkoff()
125 nilfs_palloc_bitmap_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_bitmap_blkoff() argument
128 group % nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_bitmap_blkoff()
129 return nilfs_palloc_desc_blkoff(inode, group) + 1 + in nilfs_palloc_bitmap_blkoff()
177 unsigned long group, group_offset; in nilfs_palloc_entry_blkoff() local
179 group = nilfs_palloc_group(inode, nr, &group_offset); in nilfs_palloc_entry_blkoff()
[all …]
/fs/configfs/
Ddir.c620 static void detach_groups(struct config_group *group) in detach_groups() argument
622 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups()
665 struct config_group *group) in create_default_group() argument
672 if (!group->cg_item.ci_name) in create_default_group()
673 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
676 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
681 &group->cg_item, child); in create_default_group()
695 static int populate_groups(struct config_group *group) in populate_groups() argument
700 list_for_each_entry(new_group, &group->default_groups, group_entry) { in populate_groups()
701 ret = create_default_group(group, new_group); in populate_groups()
[all …]
Ditem.c124 void config_group_init_type_name(struct config_group *group, const char *name, in config_group_init_type_name() argument
127 config_item_set_name(&group->cg_item, "%s", name); in config_group_init_type_name()
128 group->cg_item.ci_type = type; in config_group_init_type_name()
129 config_group_init(group); in config_group_init_type_name()
181 void config_group_init(struct config_group *group) in config_group_init() argument
183 config_item_init(&group->cg_item); in config_group_init()
184 INIT_LIST_HEAD(&group->cg_children); in config_group_init()
185 INIT_LIST_HEAD(&group->default_groups); in config_group_init()
198 struct config_item *config_group_find_item(struct config_group *group, in config_group_find_item() argument
204 list_for_each(entry, &group->cg_children) { in config_group_find_item()
/fs/ocfs2/
Dresize.c105 struct ocfs2_group_desc *group; in ocfs2_update_last_group_and_inode() local
121 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_update_last_group_and_inode()
123 old_bg_clusters = le16_to_cpu(group->bg_bits) / cl_bpc; in ocfs2_update_last_group_and_inode()
126 le16_add_cpu(&group->bg_bits, num_bits); in ocfs2_update_last_group_and_inode()
127 le16_add_cpu(&group->bg_free_bits_count, num_bits); in ocfs2_update_last_group_and_inode()
136 group, in ocfs2_update_last_group_and_inode()
138 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()
176 le16_add_cpu(&group->bg_free_bits_count, backups); in ocfs2_update_last_group_and_inode()
[all …]
Dstackglue.c320 const char *group, in ocfs2_cluster_connect() argument
331 BUG_ON(group == NULL); in ocfs2_cluster_connect()
353 strlcpy(new_conn->cc_name, group, GROUP_NAME_MAX + 1); in ocfs2_cluster_connect()
389 int ocfs2_cluster_connect_agnostic(const char *group, in ocfs2_cluster_connect_agnostic() argument
401 return ocfs2_cluster_connect(stack_name, NULL, 0, group, grouplen, in ocfs2_cluster_connect_agnostic()
432 static void ocfs2_leave_group(const char *group) in ocfs2_leave_group() argument
440 argv[3] = (char *)group; in ocfs2_leave_group()
464 void ocfs2_cluster_hangup(const char *group, int grouplen) in ocfs2_cluster_hangup() argument
466 BUG_ON(group == NULL); in ocfs2_cluster_hangup()
467 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.c68 struct config_group group; member
87 return i ? container_of(to_config_group(i), struct dlm_cluster, group) : in config_item_to_cluster()
217 struct config_group group; member
330 return i ? container_of(to_config_group(i), struct dlm_space, group) : in config_item_to_space()
358 config_group_init_type_name(&cl->group, name, &cluster_type); in make_cluster()
362 configfs_add_default_group(&sps->ss_group, &cl->group); in make_cluster()
363 configfs_add_default_group(&cms->cs_group, &cl->group); in make_cluster()
383 return &cl->group; in make_cluster()
396 configfs_remove_default_groups(&cl->group); in drop_cluster()
421 config_group_init_type_name(&sp->group, name, &space_type); in make_space()
[all …]

123