Home
last modified time | relevance | path

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

12

/fs/configfs/
Ditem.c50 void config_item_init(struct config_item * item) in config_item_init() argument
52 kref_init(&item->ci_kref); in config_item_init()
53 INIT_LIST_HEAD(&item->ci_entry); in config_item_init()
65 int config_item_set_name(struct config_item * item, const char * fmt, ...) in config_item_set_name() argument
77 need = vsnprintf(item->ci_namebuf,limit,fmt,args); in config_item_set_name()
80 name = item->ci_namebuf; in config_item_set_name()
104 if (item->ci_name && item->ci_name != item->ci_namebuf) in config_item_set_name()
105 kfree(item->ci_name); in config_item_set_name()
108 item->ci_name = name; in config_item_set_name()
115 void config_item_init_type_name(struct config_item *item, in config_item_init_type_name() argument
[all …]
Ddir.c217 static int configfs_create_dir(struct config_item * item, struct dentry *dentry) in configfs_create_dir() argument
222 BUG_ON(!item); in configfs_create_dir()
224 if (item->ci_parent) in configfs_create_dir()
225 parent = item->ci_parent->ci_dentry; in configfs_create_dir()
231 error = create_dir(item,parent,dentry); in configfs_create_dir()
233 item->ci_dentry = dentry; in configfs_create_dir()
331 static void configfs_remove_dir(struct config_item * item) in configfs_remove_dir() argument
333 struct dentry * dentry = dget(item->ci_dentry); in configfs_remove_dir()
482 static void detach_attrs(struct config_item * item) in detach_attrs() argument
484 struct dentry * dentry = dget(item->ci_dentry); in detach_attrs()
[all …]
Dsymlink.c37 static int item_depth(struct config_item * item) in item_depth() argument
39 struct config_item * p = item; in item_depth()
45 static int item_path_length(struct config_item * item) in item_path_length() argument
47 struct config_item * p = item; in item_path_length()
56 static void fill_item_path(struct config_item * item, char * buffer, int length) in fill_item_path() argument
61 for (p = item; p && !configfs_is_root(p); p = p->ci_parent) { in fill_item_path()
72 struct config_item *item, in create_link() argument
75 struct configfs_dirent *target_sd = item->ci_dentry->d_fsdata; in create_link()
85 sl->sl_target = config_item_get(item); in create_link()
89 config_item_put(item); in create_link()
[all …]
Dfile.c67 struct config_item * item = to_item(dentry->d_parent); in fill_read_buffer() local
77 count = ops->show_attribute(item,attr,buffer->page); in fill_read_buffer()
173 struct config_item * item = to_item(dentry->d_parent); in flush_write_buffer() local
176 return ops->store_attribute(item,attr,buffer->page,count); in flush_write_buffer()
215 struct config_item *item = configfs_get_config_item(file->f_path.dentry->d_parent); in check_perm() local
221 if (!item || !attr) in check_perm()
230 if (item->ci_type) in check_perm()
231 ops = item->ci_type->ct_item_ops; in check_perm()
277 if (error && item) in check_perm()
278 config_item_put(item); in check_perm()
[all …]
Dconfigfs_internal.h61 extern int configfs_is_root(struct config_item *item);
118 struct config_item * item = NULL; in configfs_get_config_item() local
125 item = config_item_get(sl->sl_target); in configfs_get_config_item()
127 item = config_item_get(sd->s_element); in configfs_get_config_item()
131 return item; in configfs_get_config_item()
/fs/ocfs2/
Duptodate.c93 struct ocfs2_meta_cache_item *item; in ocfs2_purge_copied_metadata_tree() local
96 item = rb_entry(node, struct ocfs2_meta_cache_item, c_node); in ocfs2_purge_copied_metadata_tree()
99 (unsigned long long) item->c_block); in ocfs2_purge_copied_metadata_tree()
101 rb_erase(&item->c_node, root); in ocfs2_purge_copied_metadata_tree()
102 kmem_cache_free(ocfs2_uptodate_cachep, item); in ocfs2_purge_copied_metadata_tree()
150 sector_t item) in ocfs2_search_cache_array() argument
155 if (item == ci->ci_cache.ci_array[i]) in ocfs2_search_cache_array()
169 struct ocfs2_meta_cache_item *item = NULL; in ocfs2_search_cache_tree() local
172 item = rb_entry(n, struct ocfs2_meta_cache_item, c_node); in ocfs2_search_cache_tree()
174 if (block < item->c_block) in ocfs2_search_cache_tree()
[all …]
Djournal.c1071 struct ocfs2_la_recovery_item *item, *n; in ocfs2_complete_recovery() local
1083 list_for_each_entry_safe(item, n, &tmp_la_list, lri_list) { in ocfs2_complete_recovery()
1084 list_del_init(&item->lri_list); in ocfs2_complete_recovery()
1086 mlog(0, "Complete recovery for slot %d\n", item->lri_slot); in ocfs2_complete_recovery()
1090 la_dinode = item->lri_la_dinode; in ocfs2_complete_recovery()
1103 tl_dinode = item->lri_tl_dinode; in ocfs2_complete_recovery()
1116 ret = ocfs2_recover_orphans(osb, item->lri_slot); in ocfs2_complete_recovery()
1120 qrec = item->lri_qrec; in ocfs2_complete_recovery()
1124 item->lri_slot); in ocfs2_complete_recovery()
1130 kfree(item); in ocfs2_complete_recovery()
[all …]
/fs/xfs/
Dxfs_filestream.c267 fstrm_item_t *item; in _xfs_filestream_update_ag() local
282 item = xfs_mru_cache_lookup(cache, ip->i_ino); in _xfs_filestream_update_ag()
283 if (item) { in _xfs_filestream_update_ag()
284 ASSERT(item->ip == ip); in _xfs_filestream_update_ag()
285 old_ag = item->ag; in _xfs_filestream_update_ag()
286 item->ag = ag; in _xfs_filestream_update_ag()
287 old_pip = item->pip; in _xfs_filestream_update_ag()
288 item->pip = pip; in _xfs_filestream_update_ag()
314 item = kmem_zone_zalloc(item_zone, KM_MAYFAIL); in _xfs_filestream_update_ag()
315 if (!item) in _xfs_filestream_update_ag()
[all …]
Dxfs_log_recover.c53 xlog_recover_item_t *item);
1369 xlog_recover_item_t *item; in xlog_recover_add_item() local
1371 item = kmem_zalloc(sizeof(xlog_recover_item_t), KM_SLEEP); in xlog_recover_add_item()
1372 xlog_recover_insert_item_backq(itemq, item); in xlog_recover_add_item()
1381 xlog_recover_item_t *item; in xlog_recover_add_to_cont_trans() local
1385 item = trans->r_itemq; in xlog_recover_add_to_cont_trans()
1386 if (item == NULL) { in xlog_recover_add_to_cont_trans()
1394 item = item->ri_prev; in xlog_recover_add_to_cont_trans()
1396 old_ptr = item->ri_buf[item->ri_cnt-1].i_addr; in xlog_recover_add_to_cont_trans()
1397 old_len = item->ri_buf[item->ri_cnt-1].i_len; in xlog_recover_add_to_cont_trans()
[all …]
Dxfs_trans_ail.c120 cur->item = NULL; in xfs_trans_ail_cursor_init()
139 cur->item = xfs_ail_next(ailp, lip); in xfs_trans_ail_cursor_set()
152 struct xfs_log_item *lip = cur->item; in xfs_trans_ail_cursor_next()
174 done->item = NULL; in xfs_trans_ail_cursor_done()
205 if (cur->item == lip) in xfs_trans_ail_cursor_clear()
206 cur->item = (struct xfs_log_item *) in xfs_trans_ail_cursor_clear()
207 ((__psint_t)cur->item | 1); in xfs_trans_ail_cursor_clear()
/fs/nfsd/
Dnfs4idmap.c278 idtoname_lookup(struct ent *item) in idtoname_lookup() argument
281 &item->h, in idtoname_lookup()
282 idtoname_hash(item)); in idtoname_lookup()
440 nametoid_lookup(struct ent *item) in nametoid_lookup() argument
443 &item->h, in nametoid_lookup()
444 nametoid_hash(item)); in nametoid_lookup()
535 struct cache_detail *detail, struct ent **item, in do_idmap_lookup() argument
538 *item = lookup_fn(key); in do_idmap_lookup()
539 if (!*item) in do_idmap_lookup()
541 return cache_check(detail, &(*item)->h, &mdr->req); in do_idmap_lookup()
[all …]
Dexport.c228 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_init() local
230 kref_get(&item->ek_client->ref); in expkey_init()
231 new->ek_client = item->ek_client; in expkey_init()
232 new->ek_fsidtype = item->ek_fsidtype; in expkey_init()
234 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init()
241 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_update() local
243 new->ek_path = item->ek_path; in expkey_update()
244 path_get(&item->ek_path); in expkey_update()
272 svc_expkey_lookup(struct svc_expkey *item) in svc_expkey_lookup() argument
275 int hash = item->ek_fsidtype; in svc_expkey_lookup()
[all …]
/fs/btrfs/
Dfile-item.c44 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 …]
Droot-tree.c77 struct btrfs_root_item *item, struct btrfs_key *key) in btrfs_find_last_root() argument
105 read_extent_buffer(l, item, btrfs_item_ptr_offset(l, slot), in btrfs_find_last_root()
106 sizeof(*item)); in btrfs_find_last_root()
119 *item) in btrfs_update_root()
144 write_extent_buffer(l, item, ptr, sizeof(*item)); in btrfs_update_root()
154 *item) in btrfs_insert_root()
157 ret = btrfs_insert_item(trans, root, key, item, sizeof(*item)); in btrfs_insert_root()
171 struct btrfs_item *item; in btrfs_find_dead_roots() local
204 item = btrfs_item_nr(leaf, slot); in btrfs_find_dead_roots()
Dctree.c2352 struct btrfs_item *item; in push_leaf_right() local
2402 item = btrfs_item_nr(left, i); in push_leaf_right()
2418 map_extent_buffer(left, (unsigned long)item, in push_leaf_right()
2425 this_item_size = btrfs_item_size(left, item); in push_leaf_right()
2426 if (this_item_size + sizeof(*item) + push_space > free_space) in push_leaf_right()
2430 push_space += this_item_size + sizeof(*item); in push_leaf_right()
2479 item = btrfs_item_nr(right, i); in push_leaf_right()
2481 map_extent_buffer(right, (unsigned long)item, in push_leaf_right()
2487 push_space -= btrfs_item_size(right, item); in push_leaf_right()
2488 btrfs_set_item_offset(right, item, push_space); in push_leaf_right()
[all …]
DMakefile5 btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
6 file-item.o inode-item.o inode-map.o disk-io.o \
Dprint-tree.c52 struct btrfs_item *item; in btrfs_print_leaf() local
69 item = btrfs_item_nr(l, i); in btrfs_print_leaf()
77 btrfs_item_offset(l, item), btrfs_item_size(l, item)); in btrfs_print_leaf()
/fs/ocfs2/cluster/
Dnodemanager.c152 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) in to_o2nm_cluster() argument
154 return item ? in to_o2nm_cluster()
155 container_of(to_config_group(item), struct o2nm_cluster, in to_o2nm_cluster()
160 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node() argument
162 return item ? container_of(item, struct o2nm_node, nd_item) : NULL; in to_o2nm_node()
165 static void o2nm_node_release(struct config_item *item) in o2nm_node_release() argument
167 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_release()
405 static ssize_t o2nm_node_show(struct config_item *item, in o2nm_node_show() argument
409 struct o2nm_node *node = to_o2nm_node(item); in o2nm_node_show()
419 static ssize_t o2nm_node_store(struct config_item *item, in o2nm_node_store() argument
[all …]
Dheartbeat.c952 static struct o2hb_region *to_o2hb_region(struct config_item *item) in to_o2hb_region() argument
954 return item ? container_of(item, struct o2hb_region, hr_item) : NULL; in to_o2hb_region()
960 static void o2hb_region_release(struct config_item *item) in o2hb_region_release() argument
964 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_release()
1438 static ssize_t o2hb_region_show(struct config_item *item, in o2hb_region_show() argument
1442 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_show()
1452 static ssize_t o2hb_region_store(struct config_item *item, in o2hb_region_store() argument
1456 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_region_store()
1511 struct config_item *item) in o2hb_heartbeat_group_drop_item() argument
1514 struct o2hb_region *reg = to_o2hb_region(item); in o2hb_heartbeat_group_drop_item()
[all …]
Dnodemanager.h76 int o2nm_depend_item(struct config_item *item);
77 void o2nm_undepend_item(struct config_item *item);
/fs/reiserfs/
Ditem_ops.c42 static void sd_print_item(struct item_head *ih, char *item) in sd_print_item() argument
46 struct stat_data_v1 *sd = (struct stat_data_v1 *)item; in sd_print_item()
53 struct stat_data *sd = (struct stat_data *)item; in sd_print_item()
61 static void sd_check_item(struct item_head *ih, char *item) in sd_check_item() argument
142 static void direct_print_item(struct item_head *ih, char *item) in direct_print_item() argument
149 printk("%c", item[j++]); in direct_print_item()
153 static void direct_check_item(struct item_head *ih, char *item) in direct_check_item() argument
271 static void indirect_print_item(struct item_head *ih, char *item) in indirect_print_item() argument
278 unp = (__le32 *) item; in indirect_print_item()
294 static void indirect_check_item(struct item_head *ih, char *item) in indirect_check_item() argument
[all …]
/fs/partitions/
Dldm.c599 struct list_head *item; in ldm_get_disk_objid() local
603 list_for_each (item, &ldb->v_disk) { in ldm_get_disk_objid()
604 struct vblk *v = list_entry (item, struct vblk, list); in ldm_get_disk_objid()
632 struct list_head *item; in ldm_create_data_partitions() local
649 list_for_each (item, &ldb->v_part) { in ldm_create_data_partitions()
650 vb = list_entry (item, struct vblk, list); in ldm_create_data_partitions()
1230 struct list_head *item; in ldm_ldmdb_add() local
1263 list_for_each (item, &ldb->v_part) { in ldm_ldmdb_add()
1264 struct vblk *v = list_entry (item, struct vblk, list); in ldm_ldmdb_add()
1292 struct list_head *item; in ldm_frag_add() local
[all …]
/fs/ocfs2/dlm/
Ddlmrecovery.c95 static void dlm_request_all_locks_worker(struct dlm_work_item *item,
97 static void dlm_mig_lockres_worker(struct dlm_work_item *item, void *data);
161 struct dlm_work_item *item, *next; in dlm_dispatch_work() local
169 list_for_each_entry(item, &tmp_list, list) { in dlm_dispatch_work()
174 list_for_each_entry_safe(item, next, &tmp_list, list) { in dlm_dispatch_work()
175 workfunc = item->func; in dlm_dispatch_work()
176 list_del_init(&item->list); in dlm_dispatch_work()
180 BUG_ON(item->dlm != dlm); in dlm_dispatch_work()
184 workfunc(item, item->data); in dlm_dispatch_work()
187 kfree(item); in dlm_dispatch_work()
[all …]
Ddlmmaster.c65 static void dlm_assert_master_worker(struct dlm_work_item *item, void *data);
69 static void dlm_deref_lockres_worker(struct dlm_work_item *item, void *data);
2047 struct dlm_work_item *item; in dlm_dispatch_assert_master() local
2048 item = kzalloc(sizeof(*item), GFP_NOFS); in dlm_dispatch_assert_master()
2049 if (!item) in dlm_dispatch_assert_master()
2055 dlm_init_work_item(dlm, item, dlm_assert_master_worker, NULL); in dlm_dispatch_assert_master()
2056 item->u.am.lockres = res; /* already have a ref */ in dlm_dispatch_assert_master()
2058 item->u.am.ignore_higher = ignore_higher; in dlm_dispatch_assert_master()
2059 item->u.am.request_from = request_from; in dlm_dispatch_assert_master()
2060 item->u.am.flags = flags; in dlm_dispatch_assert_master()
[all …]
/fs/jffs2/
Dsummary.c61 static int jffs2_sum_add_mem(struct jffs2_summary *s, union jffs2_sum_mem *item) in jffs2_sum_add_mem() argument
64 s->sum_list_head = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
66 s->sum_list_tail->u.next = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
67 s->sum_list_tail = (union jffs2_sum_mem *) item; in jffs2_sum_add_mem()
69 switch (je16_to_cpu(item->u.nodetype)) { in jffs2_sum_add_mem()
74 je32_to_cpu(item->i.inode)); in jffs2_sum_add_mem()
77 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize); in jffs2_sum_add_mem()
80 je32_to_cpu(item->d.ino)); in jffs2_sum_add_mem()
87 je32_to_cpu(item->x.xid), je32_to_cpu(item->x.version)); in jffs2_sum_add_mem()
97 je16_to_cpu(item->u.nodetype)); in jffs2_sum_add_mem()

12