Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 72) sorted by relevance

123

/fs/configfs/
Ditem.c34 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 …]
Ddir.c282 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 …]
Dsymlink.c22 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 …]
Dfile.c41 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/
Ddns_resolve.c108 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/
Dnodemanager.c143 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 …]
/fs/btrfs/
Ddelayed-inode.c309 struct btrfs_delayed_item *item; in btrfs_alloc_delayed_item() local
311 item = kmalloc(sizeof(*item) + data_len, GFP_NOFS); in btrfs_alloc_delayed_item()
312 if (item) { in btrfs_alloc_delayed_item()
313 item->data_len = data_len; in btrfs_alloc_delayed_item()
314 item->type = type; in btrfs_alloc_delayed_item()
315 item->bytes_reserved = 0; in btrfs_alloc_delayed_item()
316 item->delayed_node = node; in btrfs_alloc_delayed_item()
317 RB_CLEAR_NODE(&item->rb_node); in btrfs_alloc_delayed_item()
318 INIT_LIST_HEAD(&item->log_list); in btrfs_alloc_delayed_item()
319 item->logged = false; in btrfs_alloc_delayed_item()
[all …]
Droot-tree.c23 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()
43 memset_startat(item, 0, generation_v2); in btrfs_read_root_item()
44 generate_random_guid(item->uuid); in btrfs_read_root_item()
105 void btrfs_set_root_node(struct btrfs_root_item *item, in btrfs_set_root_node() argument
[all …]
Dfile-item.c149 struct btrfs_file_extent_item *item; in btrfs_insert_hole_extent() local
162 sizeof(*item)); in btrfs_insert_hole_extent()
167 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_hole_extent()
169 btrfs_set_file_extent_disk_bytenr(leaf, item, 0); in btrfs_insert_hole_extent()
170 btrfs_set_file_extent_disk_num_bytes(leaf, item, 0); in btrfs_insert_hole_extent()
171 btrfs_set_file_extent_offset(leaf, item, 0); in btrfs_insert_hole_extent()
172 btrfs_set_file_extent_num_bytes(leaf, item, num_bytes); in btrfs_insert_hole_extent()
173 btrfs_set_file_extent_ram_bytes(leaf, item, num_bytes); in btrfs_insert_hole_extent()
174 btrfs_set_file_extent_generation(leaf, item, trans->transid); in btrfs_insert_hole_extent()
175 btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); in btrfs_insert_hole_extent()
[all …]
Dverity.c523 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()
666 struct btrfs_verity_descriptor_item item; in btrfs_get_verity_descriptor() local
668 memset(&item, 0, sizeof(item)); in btrfs_get_verity_descriptor()
670 (char *)&item, sizeof(item), NULL); in btrfs_get_verity_descriptor()
674 if (item.reserved[0] != 0 || item.reserved[1] != 0) in btrfs_get_verity_descriptor()
677 true_size = btrfs_stack_verity_descriptor_size(&item); in btrfs_get_verity_descriptor()
/fs/ocfs2/
Duptodate.c133 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/
Dconfig.c114 static ssize_t cluster_cluster_name_show(struct config_item *item, char *buf) in cluster_cluster_name_show() argument
116 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_show()
120 static ssize_t cluster_cluster_name_store(struct config_item *item, in cluster_cluster_name_store() argument
123 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_store()
159 static ssize_t cluster_##name##_store(struct config_item *item, \
162 struct dlm_cluster *cl = config_item_to_cluster(item); \
166 static ssize_t cluster_##name##_show(struct config_item *item, char *buf) \
168 struct dlm_cluster *cl = config_item_to_cluster(item); \
289 struct config_item item; member
303 struct config_item item; member
[all …]
/fs/xfs/
Dxfs_buf_item_recover.c155 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 …]
Dxfs_dquot_item_recover.c26 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 …]
Dxfs_log_recover.c1802 struct xlog_recover_item *item) in xlog_find_item_ops() argument
1807 if (ITEM_TYPE(item) == xlog_recover_item_ops[i]->item_type) in xlog_find_item_ops()
1868 struct xlog_recover_item *item, *n; in xlog_recover_reorder_trans() local
1877 list_for_each_entry_safe(item, n, &sort_list, ri_list) { in xlog_recover_reorder_trans()
1880 item->ri_ops = xlog_find_item_ops(item); in xlog_recover_reorder_trans()
1881 if (!item->ri_ops) { in xlog_recover_reorder_trans()
1884 __func__, ITEM_TYPE(item)); in xlog_recover_reorder_trans()
1896 if (item->ri_ops->reorder) in xlog_recover_reorder_trans()
1897 fate = item->ri_ops->reorder(item); in xlog_recover_reorder_trans()
1901 list_move_tail(&item->ri_list, &buffer_list); in xlog_recover_reorder_trans()
[all …]
Dxfs_attr_item.c446 struct list_head *item, in xfs_attr_finish_item() argument
453 attr = container_of(item, struct xfs_attr_intent, xattri_list); in xfs_attr_finish_item()
481 struct list_head *item) in xfs_attr_cancel_item() argument
485 attr = container_of(item, struct xfs_attr_intent, xattri_list); in xfs_attr_cancel_item()
703 struct xlog_recover_item *item, in xlog_recover_attri_commit_pass2() argument
714 attri_formatp = item->ri_buf[0].i_addr; in xlog_recover_attri_commit_pass2()
715 attr_name = item->ri_buf[1].i_addr; in xlog_recover_attri_commit_pass2()
719 if (item->ri_buf[0].i_len != len) { in xlog_recover_attri_commit_pass2()
721 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_attri_commit_pass2()
727 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_attri_commit_pass2()
[all …]
Dxfs_filestream.c84 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 …]
Dxfs_bmap_item.c378 struct list_head *item, in xfs_bmap_update_finish_item() argument
385 bmap = container_of(item, struct xfs_bmap_intent, bi_list); in xfs_bmap_update_finish_item()
414 struct list_head *item) in xfs_bmap_update_cancel_item() argument
418 bmap = container_of(item, struct xfs_bmap_intent, bi_list); in xfs_bmap_update_cancel_item()
636 struct xlog_recover_item *item, in xlog_recover_bui_commit_pass2() argument
644 bui_formatp = item->ri_buf[0].i_addr; in xlog_recover_bui_commit_pass2()
646 if (item->ri_buf[0].i_len < xfs_bui_log_format_sizeof(0)) { in xlog_recover_bui_commit_pass2()
648 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_bui_commit_pass2()
654 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_bui_commit_pass2()
659 if (item->ri_buf[0].i_len != len) { in xlog_recover_bui_commit_pass2()
[all …]
Dxfs_inode_item_recover.c29 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()
273 struct xlog_recover_item *item, in xlog_recover_inode_commit_pass2() argument
290 if (item->ri_buf[0].i_len == sizeof(struct xfs_inode_log_format)) { in xlog_recover_inode_commit_pass2()
291 in_f = item->ri_buf[0].i_addr; in xlog_recover_inode_commit_pass2()
295 error = xfs_inode_item_format_convert(&item->ri_buf[0], in_f); in xlog_recover_inode_commit_pass2()
329 ldip = item->ri_buf[1].i_addr; in xlog_recover_inode_commit_pass2()
333 __func__, item, in_f->ilf_ino); in xlog_recover_inode_commit_pass2()
[all …]
Dxfs_refcount_item.c378 struct list_head *item, in xfs_refcount_update_finish_item() argument
386 refc = container_of(item, struct xfs_refcount_intent, ri_list); in xfs_refcount_update_finish_item()
414 struct list_head *item) in xfs_refcount_update_cancel_item() argument
418 refc = container_of(item, struct xfs_refcount_intent, ri_list); in xfs_refcount_update_cancel_item()
653 struct xlog_recover_item *item, in xlog_recover_cui_commit_pass2() argument
661 cui_formatp = item->ri_buf[0].i_addr; in xlog_recover_cui_commit_pass2()
663 if (item->ri_buf[0].i_len < xfs_cui_log_format_sizeof(0)) { in xlog_recover_cui_commit_pass2()
665 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_cui_commit_pass2()
670 if (item->ri_buf[0].i_len != len) { in xlog_recover_cui_commit_pass2()
672 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_cui_commit_pass2()
[all …]
Dxfs_rmap_item.c405 struct list_head *item, in xfs_rmap_update_finish_item() argument
411 rmap = container_of(item, struct xfs_rmap_intent, ri_list); in xfs_rmap_update_finish_item()
432 struct list_head *item) in xfs_rmap_update_cancel_item() argument
436 rmap = container_of(item, struct xfs_rmap_intent, ri_list); in xfs_rmap_update_cancel_item()
657 struct xlog_recover_item *item, in xlog_recover_rui_commit_pass2() argument
665 rui_formatp = item->ri_buf[0].i_addr; in xlog_recover_rui_commit_pass2()
667 if (item->ri_buf[0].i_len < xfs_rui_log_format_sizeof(0)) { in xlog_recover_rui_commit_pass2()
669 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_rui_commit_pass2()
674 if (item->ri_buf[0].i_len != len) { in xlog_recover_rui_commit_pass2()
676 item->ri_buf[0].i_addr, item->ri_buf[0].i_len); in xlog_recover_rui_commit_pass2()
[all …]
/fs/nfsd/
Dnfs4idmap.c273 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 …]
Dexport.c218 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/btrfs/tests/
Dqgroup-tests.c18 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/reiserfs/
Ditem_ops.c36 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 …]

123