/fs/configfs/ |
D | item.c | 34 static void config_item_init(struct config_item *item) in config_item_init() argument 36 kref_init(&item->ci_kref); in config_item_init() 37 INIT_LIST_HEAD(&item->ci_entry); in config_item_init() 49 int config_item_set_name(struct config_item *item, const char *fmt, ...) in config_item_set_name() argument 60 need = vsnprintf(item->ci_namebuf, limit, fmt, args); in config_item_set_name() 63 name = item->ci_namebuf; in config_item_set_name() 73 if (item->ci_name && item->ci_name != item->ci_namebuf) in config_item_set_name() 74 kfree(item->ci_name); in config_item_set_name() 77 item->ci_name = name; in config_item_set_name() 82 void config_item_init_type_name(struct config_item *item, in config_item_init_type_name() argument [all …]
|
D | dir.c | 282 static int configfs_create_dir(struct config_item *item, struct dentry *dentry, in configfs_create_dir() argument 290 BUG_ON(!item); in configfs_create_dir() 296 error = configfs_make_dirent(p->d_fsdata, dentry, item, mode, in configfs_create_dir() 315 item->ci_dentry = dentry; in configfs_create_dir() 416 static void configfs_remove_dir(struct config_item * item) in configfs_remove_dir() argument 418 struct dentry * dentry = dget(item->ci_dentry); in configfs_remove_dir() 551 static void detach_attrs(struct config_item * item) in detach_attrs() argument 553 struct dentry * dentry = dget(item->ci_dentry); in detach_attrs() 580 static int populate_attrs(struct config_item *item) in populate_attrs() argument 582 const struct config_item_type *t = item->ci_type; in populate_attrs() [all …]
|
D | symlink.c | 22 static int item_depth(struct config_item * item) in item_depth() argument 24 struct config_item * p = item; in item_depth() 30 static int item_path_length(struct config_item * item) in item_path_length() argument 32 struct config_item * p = item; in item_path_length() 41 static void fill_item_path(struct config_item * item, char * buffer, int length) in fill_item_path() argument 46 for (p = item; p && !configfs_is_root(p); p = p->ci_parent) { in fill_item_path() 56 static int configfs_get_target_path(struct config_item *item, in configfs_get_target_path() argument 62 depth = item_depth(item); in configfs_get_target_path() 78 struct config_item *item, in create_link() argument 81 struct configfs_dirent *target_sd = item->ci_dentry->d_fsdata; in create_link() [all …]
|
D | file.c | 41 struct config_item *item; member 68 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer() 127 len = buffer->bin_attr->read(buffer->item, NULL, 0); in configfs_bin_read_iter() 152 len = buffer->bin_attr->read(buffer->item, in configfs_bin_read_iter() 207 res = buffer->attr->store(buffer->item, buffer->page, count); in flush_write_buffer() 309 buffer->item = to_item(dentry->d_parent); in __configfs_open_file() 310 if (!buffer->item) in __configfs_open_file() 331 if (!buffer->item->ci_type) in __configfs_open_file() 334 buffer->ops = buffer->item->ci_type->ct_item_ops; in __configfs_open_file() 411 buffer->bin_attr->write(buffer->item, in configfs_release_bin_file() [all …]
|
/fs/nfs/ |
D | dns_resolve.c | 107 struct nfs_dns_ent *item; in nfs_dns_ent_free_rcu() local 109 item = container_of(head, struct nfs_dns_ent, rcu_head); in nfs_dns_ent_free_rcu() 110 kfree(item->hostname); in nfs_dns_ent_free_rcu() 111 kfree(item); in nfs_dns_ent_free_rcu() 116 struct nfs_dns_ent *item; in nfs_dns_ent_put() local 118 item = container_of(ref, struct nfs_dns_ent, h.ref); in nfs_dns_ent_put() 119 call_rcu(&item->rcu_head, nfs_dns_ent_free_rcu); in nfs_dns_ent_put() 124 struct nfs_dns_ent *item = kmalloc(sizeof(*item), GFP_KERNEL); in nfs_dns_ent_alloc() local 126 if (item != NULL) { in nfs_dns_ent_alloc() 127 item->hostname = NULL; in nfs_dns_ent_alloc() [all …]
|
/fs/ocfs2/cluster/ |
D | nodemanager.c | 143 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) in to_o2nm_cluster() argument 145 return item ? in to_o2nm_cluster() 146 container_of(to_config_group(item), struct o2nm_cluster, in to_o2nm_cluster() 151 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node() argument 153 return item ? container_of(item, struct o2nm_node, nd_item) : NULL; in to_o2nm_node() 156 static void o2nm_node_release(struct config_item *item) in o2nm_node_release() argument 158 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_release() 162 static ssize_t o2nm_node_num_show(struct config_item *item, char *page) in o2nm_node_num_show() argument 164 return sprintf(page, "%d\n", to_o2nm_node(item)->nd_num); in o2nm_node_num_show() 183 static ssize_t o2nm_node_num_store(struct config_item *item, const char *page, in o2nm_node_num_store() argument [all …]
|
D | heartbeat.c | 1485 static struct o2hb_region *to_o2hb_region(struct config_item *item) in to_o2hb_region() argument 1487 return item ? container_of(item, struct o2hb_region, hr_item) : NULL; in to_o2hb_region() 1493 static void o2hb_region_release(struct config_item *item) in o2hb_region_release() argument 1497 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_release() 1557 static ssize_t o2hb_region_block_bytes_show(struct config_item *item, in o2hb_region_block_bytes_show() argument 1560 return sprintf(page, "%u\n", to_o2hb_region(item)->hr_block_bytes); in o2hb_region_block_bytes_show() 1563 static ssize_t o2hb_region_block_bytes_store(struct config_item *item, in o2hb_region_block_bytes_store() argument 1567 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_block_bytes_store() 1586 static ssize_t o2hb_region_start_block_show(struct config_item *item, in o2hb_region_start_block_show() argument 1589 return sprintf(page, "%llu\n", to_o2hb_region(item)->hr_start_block); in o2hb_region_start_block_show() [all …]
|
/fs/btrfs/ |
D | root-tree.c | 23 struct btrfs_root_item *item) in btrfs_read_root_item() argument 29 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot), in btrfs_read_root_item() 30 min_t(u32, len, sizeof(*item))); in btrfs_read_root_item() 31 if (len < sizeof(*item)) in btrfs_read_root_item() 33 if (!need_reset && btrfs_root_generation(item) in btrfs_read_root_item() 34 != btrfs_root_generation_v2(item)) { in btrfs_read_root_item() 35 if (btrfs_root_generation_v2(item) != 0) { in btrfs_read_root_item() 42 memset(&item->generation_v2, 0, in btrfs_read_root_item() 43 sizeof(*item) - offsetof(struct btrfs_root_item, in btrfs_read_root_item() 46 generate_random_guid(item->uuid); in btrfs_read_root_item() [all …]
|
D | delayed-inode.c | 318 struct btrfs_delayed_item *item; in btrfs_alloc_delayed_item() local 319 item = kmalloc(sizeof(*item) + data_len, GFP_NOFS); in btrfs_alloc_delayed_item() 320 if (item) { in btrfs_alloc_delayed_item() 321 item->data_len = data_len; in btrfs_alloc_delayed_item() 322 item->ins_or_del = 0; in btrfs_alloc_delayed_item() 323 item->bytes_reserved = 0; in btrfs_alloc_delayed_item() 324 item->delayed_node = NULL; in btrfs_alloc_delayed_item() 325 refcount_set(&item->refs, 1); in btrfs_alloc_delayed_item() 327 return item; in btrfs_alloc_delayed_item() 406 struct btrfs_delayed_item *item; in __btrfs_add_delayed_item() local [all …]
|
D | file-item.c | 141 struct btrfs_file_extent_item *item; in btrfs_insert_file_extent() local 154 sizeof(*item)); in btrfs_insert_file_extent() 159 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent() 161 btrfs_set_file_extent_disk_bytenr(leaf, item, disk_offset); in btrfs_insert_file_extent() 162 btrfs_set_file_extent_disk_num_bytes(leaf, item, disk_num_bytes); in btrfs_insert_file_extent() 163 btrfs_set_file_extent_offset(leaf, item, offset); in btrfs_insert_file_extent() 164 btrfs_set_file_extent_num_bytes(leaf, item, num_bytes); in btrfs_insert_file_extent() 165 btrfs_set_file_extent_ram_bytes(leaf, item, ram_bytes); in btrfs_insert_file_extent() 166 btrfs_set_file_extent_generation(leaf, item, trans->transid); in btrfs_insert_file_extent() 167 btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); in btrfs_insert_file_extent() [all …]
|
D | verity.c | 523 struct btrfs_verity_descriptor_item item; in finish_verity() local 527 memset(&item, 0, sizeof(item)); in finish_verity() 528 btrfs_set_stack_verity_descriptor_size(&item, desc_size); in finish_verity() 530 (const char *)&item, sizeof(item)); in finish_verity() 667 struct btrfs_verity_descriptor_item item; in btrfs_get_verity_descriptor() local 669 memset(&item, 0, sizeof(item)); in btrfs_get_verity_descriptor() 671 (char *)&item, sizeof(item), NULL); in btrfs_get_verity_descriptor() 675 if (item.reserved[0] != 0 || item.reserved[1] != 0) in btrfs_get_verity_descriptor() 678 true_size = btrfs_stack_verity_descriptor_size(&item); in btrfs_get_verity_descriptor()
|
/fs/ocfs2/ |
D | uptodate.c | 133 struct ocfs2_meta_cache_item *item; in ocfs2_purge_copied_metadata_tree() local 136 item = rb_entry(node, struct ocfs2_meta_cache_item, c_node); in ocfs2_purge_copied_metadata_tree() 139 (unsigned long long) item->c_block); in ocfs2_purge_copied_metadata_tree() 141 rb_erase(&item->c_node, root); in ocfs2_purge_copied_metadata_tree() 142 kmem_cache_free(ocfs2_uptodate_cachep, item); in ocfs2_purge_copied_metadata_tree() 192 sector_t item) in ocfs2_search_cache_array() argument 197 if (item == ci->ci_cache.ci_array[i]) in ocfs2_search_cache_array() 211 struct ocfs2_meta_cache_item *item = NULL; in ocfs2_search_cache_tree() local 214 item = rb_entry(n, struct ocfs2_meta_cache_item, c_node); in ocfs2_search_cache_tree() 216 if (block < item->c_block) in ocfs2_search_cache_tree() [all …]
|
/fs/dlm/ |
D | config.c | 112 static ssize_t cluster_cluster_name_show(struct config_item *item, char *buf) in cluster_cluster_name_show() argument 114 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_show() 118 static ssize_t cluster_cluster_name_store(struct config_item *item, in cluster_cluster_name_store() argument 121 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_store() 157 static ssize_t cluster_##name##_store(struct config_item *item, \ 160 struct dlm_cluster *cl = config_item_to_cluster(item); \ 164 static ssize_t cluster_##name##_show(struct config_item *item, char *buf) \ 166 struct dlm_cluster *cl = config_item_to_cluster(item); \ 285 struct config_item item; member 299 struct config_item item; member [all …]
|
/fs/xfs/ |
D | xfs_buf_item_recover.c | 155 struct xlog_recover_item *item) in xlog_recover_buf_reorder() argument 157 struct xfs_buf_log_format *buf_f = item->ri_buf[0].i_addr; in xlog_recover_buf_reorder() 169 struct xlog_recover_item *item) in xlog_recover_buf_ra_pass2() argument 171 struct xfs_buf_log_format *buf_f = item->ri_buf[0].i_addr; in xlog_recover_buf_ra_pass2() 183 struct xlog_recover_item *item) in xlog_recover_buf_commit_pass1() argument 185 struct xfs_buf_log_format *bf = item->ri_buf[0].i_addr; in xlog_recover_buf_commit_pass1() 187 if (!xfs_buf_log_check_iovec(&item->ri_buf[0])) { in xlog_recover_buf_commit_pass1() 189 item->ri_buf[0].i_len); in xlog_recover_buf_commit_pass1() 447 struct xlog_recover_item *item, in xlog_recover_do_reg_buffer() argument 470 ASSERT(item->ri_buf[i].i_addr != NULL); in xlog_recover_do_reg_buffer() [all …]
|
D | xfs_dquot_item_recover.c | 26 struct xlog_recover_item *item) in xlog_recover_dquot_ra_pass2() argument 36 recddq = item->ri_buf[1].i_addr; in xlog_recover_dquot_ra_pass2() 39 if (item->ri_buf[1].i_len < sizeof(struct xfs_disk_dquot)) in xlog_recover_dquot_ra_pass2() 47 dq_f = item->ri_buf[0].i_addr; in xlog_recover_dquot_ra_pass2() 63 struct xlog_recover_item *item, in xlog_recover_dquot_commit_pass2() argument 80 recddq = item->ri_buf[1].i_addr; in xlog_recover_dquot_commit_pass2() 85 if (item->ri_buf[1].i_len < sizeof(struct xfs_disk_dquot)) { in xlog_recover_dquot_commit_pass2() 87 item->ri_buf[1].i_len, __func__); in xlog_recover_dquot_commit_pass2() 109 dq_f = item->ri_buf[0].i_addr; in xlog_recover_dquot_commit_pass2() 148 memcpy(ddq, recddq, item->ri_buf[1].i_len); in xlog_recover_dquot_commit_pass2() [all …]
|
D | xfs_inode_item_recover.c | 29 struct xlog_recover_item *item) in xlog_recover_inode_ra_pass2() argument 31 if (item->ri_buf[0].i_len == sizeof(struct xfs_inode_log_format)) { in xlog_recover_inode_ra_pass2() 32 struct xfs_inode_log_format *ilfp = item->ri_buf[0].i_addr; in xlog_recover_inode_ra_pass2() 37 struct xfs_inode_log_format_32 *ilfp = item->ri_buf[0].i_addr; in xlog_recover_inode_ra_pass2() 199 struct xlog_recover_item *item, in xlog_recover_inode_commit_pass2() argument 216 if (item->ri_buf[0].i_len == sizeof(struct xfs_inode_log_format)) { in xlog_recover_inode_commit_pass2() 217 in_f = item->ri_buf[0].i_addr; in xlog_recover_inode_commit_pass2() 221 error = xfs_inode_item_format_convert(&item->ri_buf[0], in_f); in xlog_recover_inode_commit_pass2() 255 ldip = item->ri_buf[1].i_addr; in xlog_recover_inode_commit_pass2() 259 __func__, item, in_f->ilf_ino); in xlog_recover_inode_commit_pass2() [all …]
|
D | xfs_log_recover.c | 1807 struct xlog_recover_item *item) in xlog_find_item_ops() argument 1812 if (ITEM_TYPE(item) == xlog_recover_item_ops[i]->item_type) in xlog_find_item_ops() 1873 struct xlog_recover_item *item, *n; in xlog_recover_reorder_trans() local 1882 list_for_each_entry_safe(item, n, &sort_list, ri_list) { in xlog_recover_reorder_trans() 1885 item->ri_ops = xlog_find_item_ops(item); in xlog_recover_reorder_trans() 1886 if (!item->ri_ops) { in xlog_recover_reorder_trans() 1889 __func__, ITEM_TYPE(item)); in xlog_recover_reorder_trans() 1901 if (item->ri_ops->reorder) in xlog_recover_reorder_trans() 1902 fate = item->ri_ops->reorder(item); in xlog_recover_reorder_trans() 1906 list_move_tail(&item->ri_list, &buffer_list); in xlog_recover_reorder_trans() [all …]
|
D | xfs_filestream.c | 84 struct xfs_fstrm_item *item = in xfs_fstrm_free_func() local 87 xfs_filestream_put_ag(mp, item->ag); in xfs_fstrm_free_func() 88 trace_xfs_filestream_free(mp, mru->key, item->ag); in xfs_fstrm_free_func() 90 kmem_free(item); in xfs_fstrm_free_func() 106 struct xfs_fstrm_item *item; in xfs_filestream_pick_ag() local 219 item = kmem_alloc(sizeof(*item), KM_MAYFAIL); in xfs_filestream_pick_ag() 220 if (!item) in xfs_filestream_pick_ag() 223 item->ag = *agp; in xfs_filestream_pick_ag() 225 err = xfs_mru_cache_insert(mp->m_filestream, ip->i_ino, &item->mru); in xfs_filestream_pick_ag() 235 kmem_free(item); in xfs_filestream_pick_ag() [all …]
|
D | xfs_trans_ail.c | 168 cur->item = NULL; in xfs_trans_ail_cursor_init() 181 struct xfs_log_item *lip = cur->item; in xfs_trans_ail_cursor_next() 186 cur->item = xfs_ail_next(ailp, lip); in xfs_trans_ail_cursor_next() 198 cur->item = NULL; in xfs_trans_ail_cursor_done() 218 if (cur->item == lip) in xfs_trans_ail_cursor_clear() 219 cur->item = (struct xfs_log_item *) in xfs_trans_ail_cursor_clear() 220 ((uintptr_t)cur->item | 1); in xfs_trans_ail_cursor_clear() 253 cur->item = xfs_ail_next(ailp, lip); in xfs_trans_ail_cursor_first() 284 cur->item = __xfs_trans_ail_cursor_last(ailp, lsn); in xfs_trans_ail_cursor_last() 285 return cur->item; in xfs_trans_ail_cursor_last() [all …]
|
D | xfs_extfree_item.c | 474 struct list_head *item, in xfs_extent_free_finish_item() argument 480 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_finish_item() 500 struct list_head *item) in xfs_extent_free_cancel_item() argument 504 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_cancel_item() 525 struct list_head *item, in xfs_agfl_free_finish_item() argument 538 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_agfl_free_finish_item() 704 struct xlog_recover_item *item, in xlog_recover_efi_commit_pass2() argument 712 efi_formatp = item->ri_buf[0].i_addr; in xlog_recover_efi_commit_pass2() 715 error = xfs_efi_copy_format(&item->ri_buf[0], &efip->efi_format); in xlog_recover_efi_commit_pass2() 746 struct xlog_recover_item *item, in xlog_recover_efd_commit_pass2() argument [all …]
|
/fs/btrfs/tests/ |
D | extent-buffer-tests.c | 18 struct btrfs_item *item; in test_btrfs_split_item() local 64 item = btrfs_item_nr(0); in test_btrfs_split_item() 93 item = btrfs_item_nr(0); in test_btrfs_split_item() 94 if (btrfs_item_size(eb, item) != strlen(split1)) { in test_btrfs_split_item() 118 item = btrfs_item_nr(1); in test_btrfs_split_item() 119 if (btrfs_item_size(eb, item) != strlen(split2)) { in test_btrfs_split_item() 150 item = btrfs_item_nr(0); in test_btrfs_split_item() 151 if (btrfs_item_size(eb, item) != strlen(split3)) { in test_btrfs_split_item() 174 item = btrfs_item_nr(1); in test_btrfs_split_item() 175 if (btrfs_item_size(eb, item) != strlen(split4)) { in test_btrfs_split_item() [all …]
|
D | qgroup-tests.c | 18 struct btrfs_extent_item *item; in insert_normal_tree_ref() local 24 u32 size = sizeof(*item) + sizeof(*iref) + sizeof(*block_info); in insert_normal_tree_ref() 47 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in insert_normal_tree_ref() 48 btrfs_set_extent_refs(leaf, item, 1); in insert_normal_tree_ref() 49 btrfs_set_extent_generation(leaf, item, 1); in insert_normal_tree_ref() 50 btrfs_set_extent_flags(leaf, item, BTRFS_EXTENT_FLAG_TREE_BLOCK); in insert_normal_tree_ref() 51 block_info = (struct btrfs_tree_block_info *)(item + 1); in insert_normal_tree_ref() 70 struct btrfs_extent_item *item; in add_tree_ref() local 95 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in add_tree_ref() 97 refs = btrfs_extent_refs(path->nodes[0], item); in add_tree_ref() [all …]
|
/fs/nfsd/ |
D | nfs4idmap.c | 273 idtoname_lookup(struct cache_detail *cd, struct ent *item) in idtoname_lookup() argument 275 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in idtoname_lookup() 276 idtoname_hash(item)); in idtoname_lookup() 438 nametoid_lookup(struct cache_detail *cd, struct ent *item) in nametoid_lookup() argument 440 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in nametoid_lookup() 441 nametoid_hash(item)); in nametoid_lookup() 508 struct ent *key, struct cache_detail *detail, struct ent **item) in idmap_lookup() argument 512 *item = lookup_fn(detail, key); in idmap_lookup() 513 if (!*item) in idmap_lookup() 516 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup() [all …]
|
D | export.c | 218 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_init() local 220 kref_get(&item->ek_client->ref); in expkey_init() 221 new->ek_client = item->ek_client; in expkey_init() 222 new->ek_fsidtype = item->ek_fsidtype; in expkey_init() 224 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init() 231 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_update() local 233 new->ek_path = item->ek_path; in expkey_update() 234 path_get(&item->ek_path); in expkey_update() 274 svc_expkey_hash(struct svc_expkey *item) in svc_expkey_hash() argument 276 int hash = item->ek_fsidtype; in svc_expkey_hash() [all …]
|
/fs/reiserfs/ |
D | item_ops.c | 36 static void sd_print_item(struct item_head *ih, char *item) in sd_print_item() argument 40 struct stat_data_v1 *sd = (struct stat_data_v1 *)item; in sd_print_item() 47 struct stat_data *sd = (struct stat_data *)item; in sd_print_item() 55 static void sd_check_item(struct item_head *ih, char *item) in sd_check_item() argument 134 static void direct_print_item(struct item_head *ih, char *item) in direct_print_item() argument 141 printk("%c", item[j++]); in direct_print_item() 145 static void direct_check_item(struct item_head *ih, char *item) in direct_check_item() argument 260 static void indirect_print_item(struct item_head *ih, char *item) in indirect_print_item() argument 267 unp = (__le32 *) item; in indirect_print_item() 283 static void indirect_check_item(struct item_head *ih, char *item) in indirect_check_item() argument [all …]
|