/fs/notify/ |
D | group.c | 34 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() 48 void fsnotify_destroy_group(struct fsnotify_group *group) in fsnotify_destroy_group() argument 51 fsnotify_clear_marks_by_group(group); in fsnotify_destroy_group() 56 fsnotify_flush_notify(group); in fsnotify_destroy_group() 58 fsnotify_put_group(group); in fsnotify_destroy_group() 64 void fsnotify_get_group(struct fsnotify_group *group) in fsnotify_get_group() argument 66 atomic_inc(&group->refcnt); in fsnotify_get_group() [all …]
|
D | mark.c | 113 if (mark->group) in fsnotify_put_mark() 114 fsnotify_put_group(mark->group); in fsnotify_put_mark() 125 struct fsnotify_group *group) in fsnotify_destroy_mark_locked() argument 129 BUG_ON(!mutex_is_locked(&group->mark_mutex)); in fsnotify_destroy_mark_locked() 156 mutex_unlock(&group->mark_mutex); in fsnotify_destroy_mark_locked() 173 if (group->ops->freeing_mark) in fsnotify_destroy_mark_locked() 174 group->ops->freeing_mark(mark, group); in fsnotify_destroy_mark_locked() 188 atomic_dec(&group->num_marks); in fsnotify_destroy_mark_locked() 190 mutex_lock_nested(&group->mark_mutex, SINGLE_DEPTH_NESTING); in fsnotify_destroy_mark_locked() 194 struct fsnotify_group *group) in fsnotify_destroy_mark() argument [all …]
|
D | vfsmount_mark.c | 49 struct fsnotify_group *group; in fsnotify_clear_marks_by_mount() local 52 fsnotify_get_group(mark->group); in fsnotify_clear_marks_by_mount() 53 group = mark->group; in fsnotify_clear_marks_by_mount() 56 fsnotify_destroy_mark(mark, group); in fsnotify_clear_marks_by_mount() 58 fsnotify_put_group(group); in fsnotify_clear_marks_by_mount() 62 void fsnotify_clear_vfsmount_marks_by_group(struct fsnotify_group *group) in fsnotify_clear_vfsmount_marks_by_group() argument 64 fsnotify_clear_marks_by_group_flags(group, FSNOTIFY_MARK_FLAG_VFSMOUNT); in fsnotify_clear_vfsmount_marks_by_group() 98 BUG_ON(!mutex_is_locked(&mark->group->mark_mutex)); in fsnotify_destroy_vfsmount_mark() 111 static struct fsnotify_mark *fsnotify_find_vfsmount_mark_locked(struct fsnotify_group *group, in fsnotify_find_vfsmount_mark_locked() argument 120 if (mark->group == group) { in fsnotify_find_vfsmount_mark_locked() [all …]
|
D | notification.c | 73 bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group) in fsnotify_notify_queue_is_empty() argument 75 BUG_ON(!mutex_is_locked(&group->notification_mutex)); in fsnotify_notify_queue_is_empty() 76 return list_empty(&group->notification_list) ? true : false; in fsnotify_notify_queue_is_empty() 118 struct fsnotify_event_private_data *fsnotify_remove_priv_from_event(struct fsnotify_group *group, s… in fsnotify_remove_priv_from_event() argument 126 if (lpriv->group == group) { in fsnotify_remove_priv_from_event() 140 struct fsnotify_event *fsnotify_add_notify_event(struct fsnotify_group *group, struct fsnotify_even… in fsnotify_add_notify_event() argument 147 struct list_head *list = &group->notification_list; in fsnotify_add_notify_event() 149 pr_debug("%s: group=%p event=%p priv=%p\n", __func__, group, event, priv); in fsnotify_add_notify_event() 166 mutex_lock(&group->notification_mutex); in fsnotify_add_notify_event() 168 if (group->q_len >= group->max_events) { in fsnotify_add_notify_event() [all …]
|
D | inode_mark.c | 65 BUG_ON(!mutex_is_locked(&mark->group->mark_mutex)); in fsnotify_destroy_inode_mark() 101 struct fsnotify_group *group; in fsnotify_clear_marks_by_inode() local 104 fsnotify_get_group(mark->group); in fsnotify_clear_marks_by_inode() 105 group = mark->group; in fsnotify_clear_marks_by_inode() 108 fsnotify_destroy_mark(mark, group); in fsnotify_clear_marks_by_inode() 110 fsnotify_put_group(group); in fsnotify_clear_marks_by_inode() 117 void fsnotify_clear_inode_marks_by_group(struct fsnotify_group *group) in fsnotify_clear_inode_marks_by_group() argument 119 fsnotify_clear_marks_by_group_flags(group, FSNOTIFY_MARK_FLAG_INODE); in fsnotify_clear_inode_marks_by_group() 127 struct fsnotify_group *group, in fsnotify_find_inode_mark_locked() argument 135 if (mark->group == group) { in fsnotify_find_inode_mark_locked() [all …]
|
D | fsnotify.c | 134 struct fsnotify_group *group = NULL; in send_to_group() local 155 group = inode_mark->group; in send_to_group() 164 group = vfsmount_mark->group; in send_to_group() 174 __func__, group, to_tell, mask, inode_mark, in send_to_group() 181 if (group->ops->should_send_event(group, to_tell, inode_mark, in send_to_group() 193 return group->ops->handle_event(group, inode_mark, vfsmount_mark, *event); in send_to_group() 250 inode_group = inode_mark->group; in fsnotify() 256 vfsmount_group = vfsmount_mark->group; in fsnotify()
|
D | fdinfo.c | 26 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() 148 struct fsnotify_group *group = f->private_data; in fanotify_show_fdinfo() local 151 switch (group->priority) { in fanotify_show_fdinfo() 163 if (group->max_events == UINT_MAX) in fanotify_show_fdinfo() 166 if (group->fanotify_data.max_marks == UINT_MAX) in fanotify_show_fdinfo() 170 flags, group->fanotify_data.f_flags); in fanotify_show_fdinfo()
|
/fs/notify/fanotify/ |
D | fanotify_user.c | 45 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument 48 BUG_ON(!mutex_is_locked(&group->notification_mutex)); in get_one_event() 50 pr_debug("%s: group=%p count=%zd\n", __func__, group, count); in get_one_event() 52 if (fsnotify_notify_queue_is_empty(group)) in get_one_event() 60 return fsnotify_remove_notify_event(group); in get_one_event() 63 static int create_fd(struct fsnotify_group *group, in create_fd() argument 70 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in create_fd() 90 group->fanotify_data.f_flags | FMODE_NONOTIFY, in create_fd() 111 static int fill_event_metadata(struct fsnotify_group *group, in fill_event_metadata() argument 119 group, metadata, event); in fill_event_metadata() [all …]
|
D | fanotify.c | 95 static int fanotify_get_response_from_access(struct fsnotify_group *group, in fanotify_get_response_from_access() argument 100 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in fanotify_get_response_from_access() 102 wait_event(group->fanotify_data.access_waitq, event->response || in fanotify_get_response_from_access() 103 atomic_read(&group->fanotify_data.bypass_perm)); in fanotify_get_response_from_access() 122 group, event, ret); in fanotify_get_response_from_access() 128 static int fanotify_handle_event(struct fsnotify_group *group, in fanotify_handle_event() argument 147 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in fanotify_handle_event() 149 notify_event = fsnotify_add_notify_event(group, event, NULL, fanotify_merge); in fanotify_handle_event() 158 ret = fanotify_get_response_from_access(group, event); in fanotify_handle_event() 168 static bool fanotify_should_send_event(struct fsnotify_group *group, in fanotify_should_send_event() argument [all …]
|
/fs/notify/inotify/ |
D | inotify_user.c | 115 struct fsnotify_group *group = file->private_data; in inotify_poll() local 118 poll_wait(file, &group->notification_waitq, wait); in inotify_poll() 119 mutex_lock(&group->notification_mutex); in inotify_poll() 120 if (!fsnotify_notify_queue_is_empty(group)) in inotify_poll() 122 mutex_unlock(&group->notification_mutex); in inotify_poll() 134 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument 140 if (fsnotify_notify_queue_is_empty(group)) in get_one_event() 143 event = fsnotify_peek_notify_event(group); in get_one_event() 145 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in get_one_event() 155 fsnotify_remove_notify_event(group); in get_one_event() [all …]
|
D | inotify_fsnotify.c | 92 static int inotify_handle_event(struct fsnotify_group *group, in inotify_handle_event() argument 106 pr_debug("%s: group=%p event=%p to_tell=%p mask=%x\n", __func__, group, in inotify_handle_event() 121 fsnotify_get_group(group); in inotify_handle_event() 122 fsn_event_priv->group = group; in inotify_handle_event() 125 added_event = fsnotify_add_notify_event(group, event, fsn_event_priv, inotify_merge); in inotify_handle_event() 135 fsnotify_destroy_mark(inode_mark, group); in inotify_handle_event() 140 static void inotify_freeing_mark(struct fsnotify_mark *fsn_mark, struct fsnotify_group *group) in inotify_freeing_mark() argument 142 inotify_ignored_and_remove_idr(fsn_mark, group); in inotify_freeing_mark() 145 static bool inotify_should_send_event(struct fsnotify_group *group, struct inode *inode, in inotify_should_send_event() argument 192 fsn_mark->group, fsn_mark->i.inode, i_mark->wd); in idr_callback() [all …]
|
/fs/ext2/ |
D | ialloc.c | 65 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 …]
|
D | balloc.c | 265 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/nilfs2/ |
D | alloc.c | 95 __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() 141 nilfs_palloc_group_desc_nfrees(struct inode *inode, unsigned long group, in nilfs_palloc_group_desc_nfrees() argument 146 spin_lock(nilfs_mdt_bgl_lock(inode, group)); in nilfs_palloc_group_desc_nfrees() [all …]
|
/fs/ext4/ |
D | resize.c | 49 ext4_group_t group) { in ext4_meta_bg_first_group() argument 50 return (group >> EXT4_DESC_PER_BLOCK_BITS(sb)) << in ext4_meta_bg_first_group() 55 ext4_group_t group) { in ext4_meta_bg_first_block_no() argument 56 group = ext4_meta_bg_first_group(sb, group); in ext4_meta_bg_first_block_no() 57 return ext4_group_first_block_no(sb, group); in ext4_meta_bg_first_block_no() 61 ext4_group_t group) { in ext4_group_overhead_blocks() argument 63 overhead = ext4_bg_num_gdb(sb, group); in ext4_group_overhead_blocks() 64 if (ext4_bg_has_super(sb, group)) in ext4_group_overhead_blocks() 80 ext4_group_t group = input->group; in verify_group_input() local 88 if (group != sbi->s_groups_count) { in verify_group_input() [all …]
|
D | ialloc.c | 413 ext4_group_t *group, umode_t mode, in find_group_orlov() argument 479 *group = grp; in find_group_orlov() 496 *group = grp+i; in find_group_orlov() 542 *group = grp; in find_group_orlov() 561 ext4_group_t *group, umode_t mode) in find_group_other() argument 586 *group = i; in find_group_other() 600 *group = parent_group + flex_size; in find_group_other() 601 if (*group > ngroups) in find_group_other() 602 *group = 0; in find_group_other() 603 return find_group_orlov(sb, parent, group, mode, NULL); in find_group_other() [all …]
|
D | mballoc.c | 366 ext4_group_t group); 368 ext4_group_t group); 722 void *buddy, void *bitmap, ext4_group_t group) in ext4_mb_generate_buddy() argument 724 struct ext4_group_info *grp = ext4_get_group_info(sb, group); in ext4_mb_generate_buddy() 754 ext4_grp_locked_error(sb, group, 0, 0, in ext4_mb_generate_buddy() 825 ext4_group_t first_group, group; in ext4_mb_init_cache() local 861 for (i = 0, group = first_group; i < groups_per_page; i++, group++) { in ext4_mb_init_cache() 862 if (group >= ngroups) in ext4_mb_init_cache() 865 grinfo = ext4_get_group_info(sb, group); in ext4_mb_init_cache() 876 if (!(bh[i] = ext4_read_block_bitmap_nowait(sb, group))) { in ext4_mb_init_cache() [all …]
|
D | balloc.c | 38 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() 740 int ext4_bg_has_super(struct super_block *sb, ext4_group_t group) in ext4_bg_has_super() argument 744 if (group == 0) in ext4_bg_has_super() 747 if (group == le32_to_cpu(es->s_backup_bgs[0]) || in ext4_bg_has_super() 748 group == le32_to_cpu(es->s_backup_bgs[1])) in ext4_bg_has_super() 752 if ((group <= 1) || !EXT4_HAS_RO_COMPAT_FEATURE(sb, in ext4_bg_has_super() 755 if (!(group & 1)) in ext4_bg_has_super() [all …]
|
/fs/ext3/ |
D | ialloc.c | 204 int group = -1, i; in find_group_orlov() local 218 get_random_bytes(&group, sizeof(group)); in find_group_orlov() 219 parent_group = (unsigned)group % ngroups; in find_group_orlov() 221 group = (parent_group + i) % ngroups; in find_group_orlov() 222 desc = ext3_get_group_desc (sb, group, NULL); in find_group_orlov() 231 best_group = group; in find_group_orlov() 244 group = (parent_group + i) % ngroups; in find_group_orlov() 245 desc = ext3_get_group_desc (sb, group, NULL); in find_group_orlov() 254 return group; in find_group_orlov() 259 group = (parent_group + i) % ngroups; in find_group_orlov() [all …]
|
D | balloc.c | 273 unsigned int group, struct super_block * sb) in goal_in_my_reservation() argument 277 group_first_block = ext3_group_first_block_no(sb, group); in goal_in_my_reservation() 876 ext3_try_to_allocate(struct super_block *sb, handle_t *handle, int group, in ext3_try_to_allocate() argument 886 group_first_block = ext3_group_first_block_no(sb, group); in ext3_try_to_allocate() 927 if (!claim_block(sb_bgl_lock(EXT3_SB(sb), group), in ext3_try_to_allocate() 943 && claim_block(sb_bgl_lock(EXT3_SB(sb), group), in ext3_try_to_allocate() 1114 unsigned int group, struct buffer_head *bitmap_bh) in alloc_new_reservation() argument 1124 group_first_block = ext3_group_first_block_no(sb, group); in alloc_new_reservation() 1316 unsigned int group, struct buffer_head *bitmap_bh, in ext3_try_to_allocate_with_rsv() argument 1347 ret = ext3_try_to_allocate(sb, handle, group, bitmap_bh, in ext3_try_to_allocate_with_rsv() [all …]
|
D | resize.c | 27 unsigned group = input->group; in verify_group_input() local 29 unsigned overhead = ext3_bg_has_super(sb, group) ? in verify_group_input() 30 (1 + ext3_bg_num_gdb(sb, group) + in verify_group_input() 43 ext3_bg_has_super(sb, input->group) ? "normal" : in verify_group_input() 44 "no-super", input->group, input->blocks_count, in verify_group_input() 47 if (group != sbi->s_groups_count) in verify_group_input() 50 input->group, sbi->s_groups_count); in verify_group_input() 192 ext3_fsblk_t start = ext3_group_first_block_no(sb, input->group); in setup_new_group_blocks() 193 int reserved_gdb = ext3_bg_has_super(sb, input->group) ? in setup_new_group_blocks() 195 unsigned long gdblocks = ext3_bg_num_gdb(sb, input->group); in setup_new_group_blocks() [all …]
|
/fs/configfs/ |
D | dir.c | 615 static void detach_groups(struct config_group *group) in detach_groups() argument 617 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups() 660 struct config_group *group) in create_default_group() argument 668 if (!group->cg_item.ci_name) in create_default_group() 669 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group() 670 name.name = group->cg_item.ci_name; in create_default_group() 680 &group->cg_item, child); in create_default_group() 694 static int populate_groups(struct config_group *group) in populate_groups() argument 700 if (group->default_groups) { in populate_groups() 701 for (i = 0; group->default_groups[i]; i++) { in populate_groups() [all …]
|
D | item.c | 125 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/ |
D | resize.c | 100 struct ocfs2_group_desc *group; in ocfs2_update_last_group_and_inode() local 115 group = (struct ocfs2_group_desc *)group_bh->b_data; in ocfs2_update_last_group_and_inode() 119 le16_add_cpu(&group->bg_bits, num_bits); in ocfs2_update_last_group_and_inode() 120 le16_add_cpu(&group->bg_free_bits_count, num_bits); in ocfs2_update_last_group_and_inode() 129 group, in ocfs2_update_last_group_and_inode() 133 le16_add_cpu(&group->bg_free_bits_count, -1 * backups); in ocfs2_update_last_group_and_inode() 146 chain = le16_to_cpu(group->bg_chain); in ocfs2_update_last_group_and_inode() 169 group, in ocfs2_update_last_group_and_inode() 173 le16_add_cpu(&group->bg_free_bits_count, backups); in ocfs2_update_last_group_and_inode() 174 le16_add_cpu(&group->bg_bits, -1 * num_bits); in ocfs2_update_last_group_and_inode() [all …]
|
/fs/dlm/ |
D | config.c | 95 struct config_group group; member 310 struct config_group group; member 429 return i ? container_of(to_config_group(i), struct dlm_cluster, group) : in config_item_to_cluster() 435 return i ? container_of(to_config_group(i), struct dlm_space, group) : in config_item_to_space() 465 config_group_init_type_name(&cl->group, name, &cluster_type); in make_cluster() 469 cl->group.default_groups = gps; in make_cluster() 470 cl->group.default_groups[0] = &sps->ss_group; in make_cluster() 471 cl->group.default_groups[1] = &cms->cs_group; in make_cluster() 472 cl->group.default_groups[2] = NULL; in make_cluster() 491 return &cl->group; in make_cluster() [all …]
|