Home
last modified time | relevance | path

Searched refs:group (Results 1 – 25 of 71) 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 mutex_lock(&group->notification_mutex); in fsnotify_group_stop_queueing()
49 group->shutdown = true; in fsnotify_group_stop_queueing()
50 mutex_unlock(&group->notification_mutex); 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 BUG_ON(!mutex_is_locked(&group->notification_mutex)); 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
78 group->ops->free_event(event); in fsnotify_destroy_event()
88 int fsnotify_add_event(struct fsnotify_group *group, in fsnotify_add_event() argument
94 struct list_head *list = &group->notification_list; in fsnotify_add_event()
96 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in fsnotify_add_event()
98 mutex_lock(&group->notification_mutex); in fsnotify_add_event()
100 if (group->shutdown) { in fsnotify_add_event()
[all …]
Dmark.c107 if (mark->group) in fsnotify_put_mark()
108 fsnotify_put_group(mark->group); in fsnotify_put_mark()
133 struct fsnotify_group *group = mark->group; in fsnotify_detach_mark() local
135 BUG_ON(!mutex_is_locked(&group->mark_mutex)); in fsnotify_detach_mark()
168 atomic_dec(&group->num_marks); in fsnotify_detach_mark()
178 struct fsnotify_group *group = mark->group; in fsnotify_free_mark() local
199 if (group->ops->freeing_mark) in fsnotify_free_mark()
200 group->ops->freeing_mark(mark, group); in fsnotify_free_mark()
204 struct fsnotify_group *group) in fsnotify_destroy_mark() argument
206 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);
/fs/notify/fanotify/
Dfanotify_user.c54 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument
57 BUG_ON(!mutex_is_locked(&group->notification_mutex)); 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 mutex_lock(&group->notification_mutex); in inotify_poll()
119 if (!fsnotify_notify_queue_is_empty(group)) in inotify_poll()
121 mutex_unlock(&group->notification_mutex); 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()
210 int group, best_group = -1; in find_group_dir() local
212 for (group = 0; group < ngroups; group++) { in find_group_dir()
213 desc = ext2_get_group_desc (sb, group, NULL); in find_group_dir()
221 best_group = group; in find_group_dir()
273 int group = -1, i; in find_group_orlov() local
[all …]
Dballoc.c263 unsigned int group, struct super_block * sb) in goal_in_my_reservation() argument
267 group_first_block = ext2_group_first_block_no(sb, group); in goal_in_my_reservation()
662 ext2_try_to_allocate(struct super_block *sb, int group, in ext2_try_to_allocate() argument
673 group_first_block = ext2_group_first_block_no(sb, group); in ext2_try_to_allocate()
714 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), grp_goal, in ext2_try_to_allocate()
729 && !ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), in ext2_try_to_allocate()
898 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument
908 group_first_block = ext2_group_first_block_no(sb, group); in alloc_new_reservation()
1090 ext2_try_to_allocate_with_rsv(struct super_block *sb, unsigned int group, in ext2_try_to_allocate_with_rsv() argument
1106 return ext2_try_to_allocate(sb, group, bitmap_bh, in ext2_try_to_allocate_with_rsv()
[all …]
/fs/ext4/
Dresize.c89 ext4_group_t group) { in ext4_meta_bg_first_group() argument
90 return (group >> EXT4_DESC_PER_BLOCK_BITS(sb)) << in ext4_meta_bg_first_group()
95 ext4_group_t group) { in ext4_meta_bg_first_block_no() argument
96 group = ext4_meta_bg_first_group(sb, group); in ext4_meta_bg_first_block_no()
97 return ext4_group_first_block_no(sb, group); in ext4_meta_bg_first_block_no()
101 ext4_group_t group) { in ext4_group_overhead_blocks() argument
103 overhead = ext4_bg_num_gdb(sb, group); in ext4_group_overhead_blocks()
104 if (ext4_bg_has_super(sb, group)) in ext4_group_overhead_blocks()
120 ext4_group_t group = input->group; in verify_group_input() local
128 if (group != sbi->s_groups_count) { in verify_group_input()
[all …]
Dialloc.c425 ext4_group_t *group, umode_t mode, in find_group_orlov() argument
490 *group = grp; in find_group_orlov()
507 *group = grp+i; in find_group_orlov()
553 *group = grp; in find_group_orlov()
572 ext4_group_t *group, umode_t mode) in find_group_other() argument
597 *group = i; in find_group_other()
611 *group = parent_group + flex_size; in find_group_other()
612 if (*group > ngroups) in find_group_other()
613 *group = 0; in find_group_other()
614 return find_group_orlov(sb, parent, group, mode, NULL); in find_group_other()
[all …]
Dmballoc.c368 ext4_group_t group);
370 ext4_group_t group);
724 void *buddy, void *bitmap, ext4_group_t group) in ext4_mb_generate_buddy() argument
726 struct ext4_group_info *grp = ext4_get_group_info(sb, group); in ext4_mb_generate_buddy()
756 ext4_grp_locked_error(sb, group, 0, 0, in ext4_mb_generate_buddy()
827 ext4_group_t first_group, group; in ext4_mb_init_cache() local
863 for (i = 0, group = first_group; i < groups_per_page; i++, group++) { in ext4_mb_init_cache()
864 if (group >= ngroups) in ext4_mb_init_cache()
867 grinfo = ext4_get_group_info(sb, group); in ext4_mb_init_cache()
878 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()
777 int ext4_bg_has_super(struct super_block *sb, ext4_group_t group) in ext4_bg_has_super() argument
781 if (group == 0) in ext4_bg_has_super()
784 if (group == le32_to_cpu(es->s_backup_bgs[0]) || in ext4_bg_has_super()
785 group == le32_to_cpu(es->s_backup_bgs[1])) in ext4_bg_has_super()
789 if ((group <= 1) || !ext4_has_feature_sparse_super(sb)) in ext4_bg_has_super()
791 if (!(group & 1)) in ext4_bg_has_super()
[all …]
/fs/nilfs2/
Dalloc.c95 __u64 group = nr; in nilfs_palloc_group() local
97 *offset = do_div(group, nilfs_palloc_entries_per_group(inode)); in nilfs_palloc_group()
98 return group; in nilfs_palloc_group()
110 nilfs_palloc_desc_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_desc_blkoff() argument
113 group / nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_desc_blkoff()
126 nilfs_palloc_bitmap_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_bitmap_blkoff() argument
129 group % nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_bitmap_blkoff()
130 return nilfs_palloc_desc_blkoff(inode, group) + 1 + in nilfs_palloc_bitmap_blkoff()
178 unsigned long group, group_offset; in nilfs_palloc_entry_blkoff() local
180 group = nilfs_palloc_group(inode, nr, &group_offset); in nilfs_palloc_entry_blkoff()
[all …]
/fs/configfs/
Ddir.c607 static void detach_groups(struct config_group *group) in detach_groups() argument
609 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups()
652 struct config_group *group) in create_default_group() argument
659 if (!group->cg_item.ci_name) in create_default_group()
660 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
663 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
668 &group->cg_item, child); in create_default_group()
682 static int populate_groups(struct config_group *group) in populate_groups() argument
688 if (group->default_groups) { in populate_groups()
689 for (i = 0; group->default_groups[i]; i++) { 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()
197 struct config_item *config_group_find_item(struct config_group *group, in config_group_find_item() argument
203 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.c314 const char *group, in ocfs2_cluster_connect() argument
325 BUG_ON(group == NULL); in ocfs2_cluster_connect()
347 strlcpy(new_conn->cc_name, group, GROUP_NAME_MAX + 1); in ocfs2_cluster_connect()
383 int ocfs2_cluster_connect_agnostic(const char *group, in ocfs2_cluster_connect_agnostic() argument
395 return ocfs2_cluster_connect(stack_name, NULL, 0, group, grouplen, in ocfs2_cluster_connect_agnostic()
426 static void ocfs2_leave_group(const char *group) in ocfs2_leave_group() argument
434 argv[3] = (char *)group; in ocfs2_leave_group()
458 void ocfs2_cluster_hangup(const char *group, int grouplen) in ocfs2_cluster_hangup() argument
460 BUG_ON(group == NULL); in ocfs2_cluster_hangup()
461 BUG_ON(group[grouplen] != '\0'); in ocfs2_cluster_hangup()
[all …]
/fs/dlm/
Dconfig.c68 struct config_group group; member
86 return i ? container_of(to_config_group(i), struct dlm_cluster, group) : in config_item_to_cluster()
213 struct config_group group; member
326 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 cl->group.default_groups = gps; in make_cluster()
361 cl->group.default_groups[0] = &sps->ss_group; in make_cluster()
362 cl->group.default_groups[1] = &cms->cs_group; in make_cluster()
363 cl->group.default_groups[2] = NULL; in make_cluster()
382 return &cl->group; in make_cluster()
[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 …]

123