/fs/configfs/ |
D | item.c | 36 static void config_item_init(struct config_item *item) in config_item_init() argument 38 kref_init(&item->ci_kref); in config_item_init() 39 INIT_LIST_HEAD(&item->ci_entry); in config_item_init() 51 int config_item_set_name(struct config_item *item, const char *fmt, ...) in config_item_set_name() argument 62 need = vsnprintf(item->ci_namebuf, limit, fmt, args); in config_item_set_name() 65 name = item->ci_namebuf; in config_item_set_name() 75 if (item->ci_name && item->ci_name != item->ci_namebuf) in config_item_set_name() 76 kfree(item->ci_name); in config_item_set_name() 79 item->ci_name = name; in config_item_set_name() 84 void config_item_init_type_name(struct config_item *item, in config_item_init_type_name() argument [all …]
|
D | dir.c | 275 static int configfs_create_dir(struct config_item *item, struct dentry *dentry, in configfs_create_dir() argument 283 BUG_ON(!item); in configfs_create_dir() 289 error = configfs_make_dirent(p->d_fsdata, dentry, item, mode, in configfs_create_dir() 308 item->ci_dentry = dentry; in configfs_create_dir() 407 static void configfs_remove_dir(struct config_item * item) in configfs_remove_dir() argument 409 struct dentry * dentry = dget(item->ci_dentry); in configfs_remove_dir() 567 static void detach_attrs(struct config_item * item) in detach_attrs() argument 569 struct dentry * dentry = dget(item->ci_dentry); in detach_attrs() 596 static int populate_attrs(struct config_item *item) in populate_attrs() argument 598 const struct config_item_type *t = item->ci_type; in populate_attrs() [all …]
|
D | symlink.c | 24 static int item_depth(struct config_item * item) in item_depth() argument 26 struct config_item * p = item; in item_depth() 32 static int item_path_length(struct config_item * item) in item_path_length() argument 34 struct config_item * p = item; in item_path_length() 43 static void fill_item_path(struct config_item * item, char * buffer, int length) in fill_item_path() argument 48 for (p = item; p && !configfs_is_root(p); p = p->ci_parent) { in fill_item_path() 58 static int configfs_get_target_path(struct config_item *item, in configfs_get_target_path() argument 64 depth = item_depth(item); in configfs_get_target_path() 80 struct config_item *item, in create_link() argument 83 struct configfs_dirent *target_sd = item->ci_dentry->d_fsdata; in create_link() [all …]
|
D | file.c | 43 struct config_item *item; member 70 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer() 164 len = buffer->bin_attr->read(buffer->item, NULL, 0); in configfs_read_bin_file() 189 len = buffer->bin_attr->read(buffer->item, in configfs_read_bin_file() 251 res = buffer->attr->store(buffer->item, buffer->page, count); in flush_write_buffer() 375 buffer->item = to_item(dentry->d_parent); in __configfs_open_file() 376 if (!buffer->item) in __configfs_open_file() 397 if (!buffer->item->ci_type) in __configfs_open_file() 400 buffer->ops = buffer->item->ci_type->ct_item_ops; in __configfs_open_file() 439 config_item_put(buffer->item); in __configfs_open_file() [all …]
|
D | configfs_internal.h | 66 extern int configfs_is_root(struct config_item *item); 123 struct config_item * item = NULL; in configfs_get_config_item() local 128 item = config_item_get(sd->s_element); in configfs_get_config_item() 132 return item; in configfs_get_config_item()
|
/fs/nfs/ |
D | dns_resolve.c | 108 struct nfs_dns_ent *item; in nfs_dns_ent_free_rcu() local 110 item = container_of(head, struct nfs_dns_ent, rcu_head); in nfs_dns_ent_free_rcu() 111 kfree(item->hostname); in nfs_dns_ent_free_rcu() 112 kfree(item); in nfs_dns_ent_free_rcu() 117 struct nfs_dns_ent *item; in nfs_dns_ent_put() local 119 item = container_of(ref, struct nfs_dns_ent, h.ref); in nfs_dns_ent_put() 120 call_rcu(&item->rcu_head, nfs_dns_ent_free_rcu); in nfs_dns_ent_put() 125 struct nfs_dns_ent *item = kmalloc(sizeof(*item), GFP_KERNEL); in nfs_dns_ent_alloc() local 127 if (item != NULL) { in nfs_dns_ent_alloc() 128 item->hostname = NULL; in nfs_dns_ent_alloc() [all …]
|
/fs/ocfs2/cluster/ |
D | nodemanager.c | 145 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) in to_o2nm_cluster() argument 147 return item ? in to_o2nm_cluster() 148 container_of(to_config_group(item), struct o2nm_cluster, in to_o2nm_cluster() 153 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node() argument 155 return item ? container_of(item, struct o2nm_node, nd_item) : NULL; in to_o2nm_node() 158 static void o2nm_node_release(struct config_item *item) in o2nm_node_release() argument 160 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_release() 164 static ssize_t o2nm_node_num_show(struct config_item *item, char *page) in o2nm_node_num_show() argument 166 return sprintf(page, "%d\n", to_o2nm_node(item)->nd_num); in o2nm_node_num_show() 185 static ssize_t o2nm_node_num_store(struct config_item *item, const char *page, in o2nm_node_num_store() argument [all …]
|
D | heartbeat.c | 1491 static struct o2hb_region *to_o2hb_region(struct config_item *item) in to_o2hb_region() argument 1493 return item ? container_of(item, struct o2hb_region, hr_item) : NULL; in to_o2hb_region() 1499 static void o2hb_region_release(struct config_item *item) in o2hb_region_release() argument 1503 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_release() 1563 static ssize_t o2hb_region_block_bytes_show(struct config_item *item, in o2hb_region_block_bytes_show() argument 1566 return sprintf(page, "%u\n", to_o2hb_region(item)->hr_block_bytes); in o2hb_region_block_bytes_show() 1569 static ssize_t o2hb_region_block_bytes_store(struct config_item *item, in o2hb_region_block_bytes_store() argument 1573 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_block_bytes_store() 1592 static ssize_t o2hb_region_start_block_show(struct config_item *item, in o2hb_region_start_block_show() argument 1595 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 30 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot), in btrfs_read_root_item() 31 min_t(u32, len, sizeof(*item))); in btrfs_read_root_item() 32 if (len < sizeof(*item)) in btrfs_read_root_item() 34 if (!need_reset && btrfs_root_generation(item) in btrfs_read_root_item() 35 != btrfs_root_generation_v2(item)) { in btrfs_read_root_item() 36 if (btrfs_root_generation_v2(item) != 0) { in btrfs_read_root_item() 43 memset(&item->generation_v2, 0, in btrfs_read_root_item() 44 sizeof(*item) - offsetof(struct btrfs_root_item, in btrfs_read_root_item() 48 memcpy(item->uuid, uuid.b, BTRFS_UUID_SIZE); in btrfs_read_root_item() [all …]
|
D | delayed-inode.c | 317 struct btrfs_delayed_item *item; in btrfs_alloc_delayed_item() local 318 item = kmalloc(sizeof(*item) + data_len, GFP_NOFS); in btrfs_alloc_delayed_item() 319 if (item) { in btrfs_alloc_delayed_item() 320 item->data_len = data_len; in btrfs_alloc_delayed_item() 321 item->ins_or_del = 0; in btrfs_alloc_delayed_item() 322 item->bytes_reserved = 0; in btrfs_alloc_delayed_item() 323 item->delayed_node = NULL; in btrfs_alloc_delayed_item() 324 refcount_set(&item->refs, 1); in btrfs_alloc_delayed_item() 326 return item; in btrfs_alloc_delayed_item() 405 struct btrfs_delayed_item *item; in __btrfs_add_delayed_item() local [all …]
|
D | file-item.c | 42 struct btrfs_file_extent_item *item; in btrfs_insert_file_extent() local 56 sizeof(*item)); in btrfs_insert_file_extent() 61 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent() 63 btrfs_set_file_extent_disk_bytenr(leaf, item, disk_offset); in btrfs_insert_file_extent() 64 btrfs_set_file_extent_disk_num_bytes(leaf, item, disk_num_bytes); in btrfs_insert_file_extent() 65 btrfs_set_file_extent_offset(leaf, item, offset); in btrfs_insert_file_extent() 66 btrfs_set_file_extent_num_bytes(leaf, item, num_bytes); in btrfs_insert_file_extent() 67 btrfs_set_file_extent_ram_bytes(leaf, item, ram_bytes); in btrfs_insert_file_extent() 68 btrfs_set_file_extent_generation(leaf, item, trans->transid); in btrfs_insert_file_extent() 69 btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); in btrfs_insert_file_extent() [all …]
|
D | tree-log.c | 414 struct btrfs_inode_item *item; in overwrite_item() local 418 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item() 420 nbytes = btrfs_inode_nbytes(path->nodes[0], item); in overwrite_item() 421 item = btrfs_item_ptr(eb, slot, in overwrite_item() 423 btrfs_set_inode_nbytes(eb, item, nbytes); in overwrite_item() 430 mode = btrfs_inode_mode(eb, item); in overwrite_item() 432 btrfs_set_inode_size(eb, item, 0); in overwrite_item() 435 struct btrfs_inode_item *item; in overwrite_item() local 442 item = btrfs_item_ptr(eb, slot, struct btrfs_inode_item); in overwrite_item() 443 btrfs_set_inode_nbytes(eb, item, 0); in overwrite_item() [all …]
|
/fs/xfs/ |
D | xfs_log_recover.c | 1850 xlog_recover_item_t *item, *n; in xlog_recover_reorder_trans() local 1859 list_for_each_entry_safe(item, n, &sort_list, ri_list) { in xlog_recover_reorder_trans() 1860 xfs_buf_log_format_t *buf_f = item->ri_buf[0].i_addr; in xlog_recover_reorder_trans() 1862 switch (ITEM_TYPE(item)) { in xlog_recover_reorder_trans() 1864 list_move_tail(&item->ri_list, &buffer_list); in xlog_recover_reorder_trans() 1869 trans, item, pass); in xlog_recover_reorder_trans() 1870 list_move(&item->ri_list, &cancel_list); in xlog_recover_reorder_trans() 1874 list_move(&item->ri_list, &inode_buffer_list); in xlog_recover_reorder_trans() 1877 list_move_tail(&item->ri_list, &buffer_list); in xlog_recover_reorder_trans() 1891 trans, item, pass); in xlog_recover_reorder_trans() [all …]
|
D | xfs_filestream.c | 115 struct xfs_fstrm_item *item = in xfs_fstrm_free_func() local 118 xfs_filestream_put_ag(mp, item->ag); in xfs_fstrm_free_func() 119 trace_xfs_filestream_free(mp, mru->key, item->ag); in xfs_fstrm_free_func() 121 kmem_free(item); in xfs_fstrm_free_func() 137 struct xfs_fstrm_item *item; in xfs_filestream_pick_ag() local 250 item = kmem_alloc(sizeof(*item), KM_MAYFAIL); in xfs_filestream_pick_ag() 251 if (!item) in xfs_filestream_pick_ag() 254 item->ag = *agp; in xfs_filestream_pick_ag() 256 err = xfs_mru_cache_insert(mp->m_filestream, ip->i_ino, &item->mru); in xfs_filestream_pick_ag() 266 kmem_free(item); in xfs_filestream_pick_ag() [all …]
|
D | xfs_trans_ail.c | 158 cur->item = NULL; in xfs_trans_ail_cursor_init() 171 struct xfs_log_item *lip = cur->item; in xfs_trans_ail_cursor_next() 176 cur->item = xfs_ail_next(ailp, lip); in xfs_trans_ail_cursor_next() 188 cur->item = NULL; in xfs_trans_ail_cursor_done() 208 if (cur->item == lip) in xfs_trans_ail_cursor_clear() 209 cur->item = (struct xfs_log_item *) in xfs_trans_ail_cursor_clear() 210 ((uintptr_t)cur->item | 1); in xfs_trans_ail_cursor_clear() 243 cur->item = xfs_ail_next(ailp, lip); in xfs_trans_ail_cursor_first() 274 cur->item = __xfs_trans_ail_cursor_last(ailp, lsn); in xfs_trans_ail_cursor_last() 275 return cur->item; in xfs_trans_ail_cursor_last() [all …]
|
D | xfs_extfree_item.c | 440 struct list_head *item) in xfs_extent_free_log_item() argument 447 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_log_item() 478 struct list_head *item, in xfs_extent_free_finish_item() argument 485 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_finish_item() 505 struct list_head *item) in xfs_extent_free_cancel_item() argument 509 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_extent_free_cancel_item() 531 struct list_head *item, in xfs_agfl_free_finish_item() argument 545 free = container_of(item, struct xfs_extent_free_item, xefi_list); in xfs_agfl_free_finish_item()
|
/fs/ocfs2/ |
D | uptodate.c | 135 struct ocfs2_meta_cache_item *item; in ocfs2_purge_copied_metadata_tree() local 138 item = rb_entry(node, struct ocfs2_meta_cache_item, c_node); in ocfs2_purge_copied_metadata_tree() 141 (unsigned long long) item->c_block); in ocfs2_purge_copied_metadata_tree() 143 rb_erase(&item->c_node, root); in ocfs2_purge_copied_metadata_tree() 144 kmem_cache_free(ocfs2_uptodate_cachep, item); in ocfs2_purge_copied_metadata_tree() 194 sector_t item) in ocfs2_search_cache_array() argument 199 if (item == ci->ci_cache.ci_array[i]) in ocfs2_search_cache_array() 213 struct ocfs2_meta_cache_item *item = NULL; in ocfs2_search_cache_tree() local 216 item = rb_entry(n, struct ocfs2_meta_cache_item, c_node); in ocfs2_search_cache_tree() 218 if (block < item->c_block) in ocfs2_search_cache_tree() [all …]
|
/fs/dlm/ |
D | config.c | 106 static ssize_t cluster_cluster_name_show(struct config_item *item, char *buf) in cluster_cluster_name_show() argument 108 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_show() 112 static ssize_t cluster_cluster_name_store(struct config_item *item, in cluster_cluster_name_store() argument 115 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_store() 148 static ssize_t cluster_##name##_store(struct config_item *item, \ 151 struct dlm_cluster *cl = config_item_to_cluster(item); \ 155 static ssize_t cluster_##name##_show(struct config_item *item, char *buf) \ 157 struct dlm_cluster *cl = config_item_to_cluster(item); \ 226 struct config_item item; member 239 struct config_item item; member [all …]
|
/fs/sdcardfs/ |
D | packagelist.c | 490 struct config_item item; member 494 static inline struct package_details *to_package_details(struct config_item *item) in to_package_details() argument 496 return item ? container_of(item, struct package_details, item) : NULL; in to_package_details() 499 static ssize_t package_details_appid_show(struct config_item *item, char *page) in package_details_appid_show() argument 501 return scnprintf(page, PAGE_SIZE, "%u\n", __get_appid(&to_package_details(item)->name)); in package_details_appid_show() 504 static ssize_t package_details_appid_store(struct config_item *item, in package_details_appid_store() argument 514 ret = insert_packagelist_entry(&to_package_details(item)->name, tmp); in package_details_appid_store() 522 static ssize_t package_details_excluded_userids_show(struct config_item *item, in package_details_excluded_userids_show() argument 525 struct package_details *package_details = to_package_details(item); in package_details_excluded_userids_show() 543 static ssize_t package_details_excluded_userids_store(struct config_item *item, in package_details_excluded_userids_store() argument [all …]
|
/fs/btrfs/tests/ |
D | extent-buffer-tests.c | 18 struct btrfs_item *item; in test_btrfs_split_item() local 65 item = btrfs_item_nr(0); in test_btrfs_split_item() 94 item = btrfs_item_nr(0); in test_btrfs_split_item() 95 if (btrfs_item_size(eb, item) != strlen(split1)) { in test_btrfs_split_item() 119 item = btrfs_item_nr(1); in test_btrfs_split_item() 120 if (btrfs_item_size(eb, item) != strlen(split2)) { in test_btrfs_split_item() 151 item = btrfs_item_nr(0); in test_btrfs_split_item() 152 if (btrfs_item_size(eb, item) != strlen(split3)) { in test_btrfs_split_item() 175 item = btrfs_item_nr(1); in test_btrfs_split_item() 176 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() 48 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in insert_normal_tree_ref() 49 btrfs_set_extent_refs(leaf, item, 1); in insert_normal_tree_ref() 50 btrfs_set_extent_generation(leaf, item, 1); in insert_normal_tree_ref() 51 btrfs_set_extent_flags(leaf, item, BTRFS_EXTENT_FLAG_TREE_BLOCK); in insert_normal_tree_ref() 52 block_info = (struct btrfs_tree_block_info *)(item + 1); in insert_normal_tree_ref() 71 struct btrfs_extent_item *item; in add_tree_ref() local 97 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in add_tree_ref() 99 refs = btrfs_extent_refs(path->nodes[0], item); in add_tree_ref() [all …]
|
/fs/nfsd/ |
D | nfs4idmap.c | 266 idtoname_lookup(struct cache_detail *cd, struct ent *item) in idtoname_lookup() argument 268 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in idtoname_lookup() 269 idtoname_hash(item)); in idtoname_lookup() 424 nametoid_lookup(struct cache_detail *cd, struct ent *item) in nametoid_lookup() argument 426 struct cache_head *ch = sunrpc_cache_lookup_rcu(cd, &item->h, in nametoid_lookup() 427 nametoid_hash(item)); in nametoid_lookup() 494 struct ent *key, struct cache_detail *detail, struct ent **item) in idmap_lookup() argument 498 *item = lookup_fn(detail, key); in idmap_lookup() 499 if (!*item) in idmap_lookup() 502 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup() [all …]
|
D | export.c | 208 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_init() local 210 kref_get(&item->ek_client->ref); in expkey_init() 211 new->ek_client = item->ek_client; in expkey_init() 212 new->ek_fsidtype = item->ek_fsidtype; in expkey_init() 214 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init() 221 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_update() local 223 new->ek_path = item->ek_path; in expkey_update() 224 path_get(&item->ek_path); in expkey_update() 263 svc_expkey_hash(struct svc_expkey *item) in svc_expkey_hash() argument 265 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 …]
|
/fs/ocfs2/dlm/ |
D | dlmrecovery.c | 76 static void dlm_request_all_locks_worker(struct dlm_work_item *item, 78 static void dlm_mig_lockres_worker(struct dlm_work_item *item, void *data); 142 struct dlm_work_item *item, *next; in dlm_dispatch_work() local 150 list_for_each_entry(item, &tmp_list, list) { in dlm_dispatch_work() 155 list_for_each_entry_safe(item, next, &tmp_list, list) { in dlm_dispatch_work() 156 workfunc = item->func; in dlm_dispatch_work() 157 list_del_init(&item->list); in dlm_dispatch_work() 161 BUG_ON(item->dlm != dlm); in dlm_dispatch_work() 165 workfunc(item, item->data); in dlm_dispatch_work() 168 kfree(item); in dlm_dispatch_work() [all …]
|