Home
last modified time | relevance | path

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

123

/fs/configfs/
Ditem.c36 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 …]
Ddir.c283 static int configfs_create_dir(struct config_item *item, struct dentry *dentry, in configfs_create_dir() argument
291 BUG_ON(!item); in configfs_create_dir()
297 error = configfs_make_dirent(p->d_fsdata, dentry, item, mode, in configfs_create_dir()
316 item->ci_dentry = dentry; in configfs_create_dir()
417 static void configfs_remove_dir(struct config_item * item) in configfs_remove_dir() argument
419 struct dentry * dentry = dget(item->ci_dentry); in configfs_remove_dir()
577 static void detach_attrs(struct config_item * item) in detach_attrs() argument
579 struct dentry * dentry = dget(item->ci_dentry); in detach_attrs()
606 static int populate_attrs(struct config_item *item) in populate_attrs() argument
608 const struct config_item_type *t = item->ci_type; in populate_attrs()
[all …]
Dsymlink.c24 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 …]
Dfile.c43 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()
480 buffer->bin_attr->write(buffer->item, in configfs_release_bin_file()
[all …]
/fs/nfs/
Ddns_resolve.c107 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/
Dnodemanager.c145 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 …]
Dheartbeat.c1489 static struct o2hb_region *to_o2hb_region(struct config_item *item) in to_o2hb_region() argument
1491 return item ? container_of(item, struct o2hb_region, hr_item) : NULL; in to_o2hb_region()
1497 static void o2hb_region_release(struct config_item *item) in o2hb_region_release() argument
1501 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_release()
1561 static ssize_t o2hb_region_block_bytes_show(struct config_item *item, in o2hb_region_block_bytes_show() argument
1564 return sprintf(page, "%u\n", to_o2hb_region(item)->hr_block_bytes); in o2hb_region_block_bytes_show()
1567 static ssize_t o2hb_region_block_bytes_store(struct config_item *item, in o2hb_region_block_bytes_store() argument
1571 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_block_bytes_store()
1590 static ssize_t o2hb_region_start_block_show(struct config_item *item, in o2hb_region_start_block_show() argument
1593 return sprintf(page, "%llu\n", to_o2hb_region(item)->hr_start_block); in o2hb_region_start_block_show()
[all …]
/fs/btrfs/
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()
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 …]
Ddelayed-inode.c319 struct btrfs_delayed_item *item; in btrfs_alloc_delayed_item() local
320 item = kmalloc(sizeof(*item) + data_len, GFP_NOFS); in btrfs_alloc_delayed_item()
321 if (item) { in btrfs_alloc_delayed_item()
322 item->data_len = data_len; in btrfs_alloc_delayed_item()
323 item->ins_or_del = 0; in btrfs_alloc_delayed_item()
324 item->bytes_reserved = 0; in btrfs_alloc_delayed_item()
325 item->delayed_node = NULL; in btrfs_alloc_delayed_item()
326 refcount_set(&item->refs, 1); in btrfs_alloc_delayed_item()
328 return item; in btrfs_alloc_delayed_item()
407 struct btrfs_delayed_item *item; in __btrfs_add_delayed_item() local
[all …]
Dfile-item.c133 struct btrfs_file_extent_item *item; in btrfs_insert_file_extent() local
147 sizeof(*item)); in btrfs_insert_file_extent()
152 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
154 btrfs_set_file_extent_disk_bytenr(leaf, item, disk_offset); in btrfs_insert_file_extent()
155 btrfs_set_file_extent_disk_num_bytes(leaf, item, disk_num_bytes); in btrfs_insert_file_extent()
156 btrfs_set_file_extent_offset(leaf, item, offset); in btrfs_insert_file_extent()
157 btrfs_set_file_extent_num_bytes(leaf, item, num_bytes); in btrfs_insert_file_extent()
158 btrfs_set_file_extent_ram_bytes(leaf, item, ram_bytes); in btrfs_insert_file_extent()
159 btrfs_set_file_extent_generation(leaf, item, trans->transid); in btrfs_insert_file_extent()
160 btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG); in btrfs_insert_file_extent()
[all …]
/fs/ocfs2/
Duptodate.c135 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/
Dconfig.c111 static ssize_t cluster_cluster_name_show(struct config_item *item, char *buf) in cluster_cluster_name_show() argument
113 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_show()
117 static ssize_t cluster_cluster_name_store(struct config_item *item, in cluster_cluster_name_store() argument
120 struct dlm_cluster *cl = config_item_to_cluster(item); in cluster_cluster_name_store()
156 static ssize_t cluster_##name##_store(struct config_item *item, \
159 struct dlm_cluster *cl = config_item_to_cluster(item); \
163 static ssize_t cluster_##name##_show(struct config_item *item, char *buf) \
165 struct dlm_cluster *cl = config_item_to_cluster(item); \
254 struct config_item item; member
268 struct config_item item; member
[all …]
/fs/xfs/
Dxfs_buf_item_recover.c146 struct xlog_recover_item *item) in xlog_recover_buf_reorder() argument
148 struct xfs_buf_log_format *buf_f = item->ri_buf[0].i_addr; in xlog_recover_buf_reorder()
160 struct xlog_recover_item *item) in xlog_recover_buf_ra_pass2() argument
162 struct xfs_buf_log_format *buf_f = item->ri_buf[0].i_addr; in xlog_recover_buf_ra_pass2()
174 struct xlog_recover_item *item) in xlog_recover_buf_commit_pass1() argument
176 struct xfs_buf_log_format *bf = item->ri_buf[0].i_addr; in xlog_recover_buf_commit_pass1()
178 if (!xfs_buf_log_check_iovec(&item->ri_buf[0])) { in xlog_recover_buf_commit_pass1()
180 item->ri_buf[0].i_len); in xlog_recover_buf_commit_pass1()
438 struct xlog_recover_item *item, in xlog_recover_do_reg_buffer() argument
461 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_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()
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 …]
Dxfs_log_recover.c1782 struct xlog_recover_item *item) in xlog_find_item_ops() argument
1787 if (ITEM_TYPE(item) == xlog_recover_item_ops[i]->item_type) in xlog_find_item_ops()
1848 struct xlog_recover_item *item, *n; in xlog_recover_reorder_trans() local
1857 list_for_each_entry_safe(item, n, &sort_list, ri_list) { in xlog_recover_reorder_trans()
1860 item->ri_ops = xlog_find_item_ops(item); in xlog_recover_reorder_trans()
1861 if (!item->ri_ops) { in xlog_recover_reorder_trans()
1864 __func__, ITEM_TYPE(item)); in xlog_recover_reorder_trans()
1876 if (item->ri_ops->reorder) in xlog_recover_reorder_trans()
1877 fate = item->ri_ops->reorder(item); in xlog_recover_reorder_trans()
1881 list_move_tail(&item->ri_list, &buffer_list); in xlog_recover_reorder_trans()
[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_trans_ail.c167 cur->item = NULL; in xfs_trans_ail_cursor_init()
180 struct xfs_log_item *lip = cur->item; in xfs_trans_ail_cursor_next()
185 cur->item = xfs_ail_next(ailp, lip); in xfs_trans_ail_cursor_next()
197 cur->item = NULL; in xfs_trans_ail_cursor_done()
217 if (cur->item == lip) in xfs_trans_ail_cursor_clear()
218 cur->item = (struct xfs_log_item *) in xfs_trans_ail_cursor_clear()
219 ((uintptr_t)cur->item | 1); in xfs_trans_ail_cursor_clear()
252 cur->item = xfs_ail_next(ailp, lip); in xfs_trans_ail_cursor_first()
283 cur->item = __xfs_trans_ail_cursor_last(ailp, lsn); in xfs_trans_ail_cursor_last()
284 return cur->item; in xfs_trans_ail_cursor_last()
[all …]
Dxfs_extfree_item.c474 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()
694 struct xlog_recover_item *item, in xlog_recover_efi_commit_pass2() argument
702 efi_formatp = item->ri_buf[0].i_addr; in xlog_recover_efi_commit_pass2()
705 error = xfs_efi_copy_format(&item->ri_buf[0], &efip->efi_format); in xlog_recover_efi_commit_pass2()
736 struct xlog_recover_item *item, in xlog_recover_efd_commit_pass2() argument
[all …]
/fs/btrfs/tests/
Dextent-buffer-tests.c18 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 …]
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()
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/
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/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 …]
/fs/xfs/libxfs/
Dxfs_log_recover.h33 enum xlog_recover_reorder (*reorder)(struct xlog_recover_item *item);
36 void (*ra_pass2)(struct xlog *log, struct xlog_recover_item *item);
39 int (*commit_pass1)(struct xlog *log, struct xlog_recover_item *item);
59 struct xlog_recover_item *item, xfs_lsn_t lsn);

123