Searched defs:item (Results 1 - 25 of 52) sorted by relevance

123

/fs/btrfs/tests/
H A Dextent-buffer-tests.c30 struct btrfs_item *item; local
70 item = btrfs_item_nr(0);
78 * space in this leaf to split the item without having to split the
83 test_msg("Split item failed %d\n", ret);
99 item = btrfs_item_nr(0);
100 if (btrfs_item_size(eb, item) != strlen(split1)) {
124 item = btrfs_item_nr(1);
125 if (btrfs_item_size(eb, item) != strlen(split2)) {
144 test_msg("Second split item failed %d\n", ret);
156 item
[all...]
H A Dqgroup-tests.c37 struct btrfs_extent_item *item; local
43 u32 size = sizeof(*item) + sizeof(*iref) + sizeof(*block_info);
67 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item);
68 btrfs_set_extent_refs(leaf, item, 1);
69 btrfs_set_extent_generation(leaf, item, 1);
70 btrfs_set_extent_flags(leaf, item, BTRFS_EXTENT_FLAG_TREE_BLOCK);
71 block_info = (struct btrfs_tree_block_info *)(item + 1);
90 struct btrfs_extent_item *item; local
116 item = btrfs_item_ptr(path->nodes[0], path->slots[0],
118 refs = btrfs_extent_refs(path->nodes[0], item);
174 struct btrfs_extent_item *item; local
[all...]
/fs/configfs/
H A Ditem.c4 * item.c - library routines for handling generic config items
47 * config_item_init - initialize item.
48 * @item: item in question.
50 void config_item_init(struct config_item *item) argument
52 kref_init(&item->ci_kref);
53 INIT_LIST_HEAD(&item->ci_entry);
58 * config_item_set_name - Set the name of an item
59 * @item: item
66 config_item_set_name(struct config_item *item, const char *fmt, ...) argument
115 config_item_init_type_name(struct config_item *item, const char *name, struct config_item_type *type) argument
134 config_item_get(struct config_item *item) argument
142 config_item_cleanup(struct config_item *item) argument
171 config_item_put(struct config_item *item) argument
205 struct config_item *item = to_item(entry); local
[all...]
H A Dmount.c56 int configfs_is_root(struct config_item *item) argument
58 return item == &configfs_root_group.cg_item;
H A Dconfigfs_internal.h69 extern int configfs_is_root(struct config_item *item);
127 struct config_item * item = NULL; local
134 item = config_item_get(sl->sl_target);
136 item = config_item_get(sd->s_element);
140 return item;
H A Dfile.c55 * fill_read_buffer - allocate and fill buffer from item.
67 struct config_item * item = to_item(dentry->d_parent); local
77 count = ops->show_attribute(item,attr,buffer->page);
95 * is in the file's ->d_fsdata. The target item is in the directory's
99 * item's show() method exactly once (if the read is happening from
101 * all the data the item has to offer for that attribute.
173 struct config_item * item = to_item(dentry->d_parent); local
176 return ops->store_attribute(item,attr,buffer->page,count);
215 struct config_item *item = configfs_get_config_item(file->f_path.dentry->d_parent); local
221 if (!item || !att
289 struct config_item * item = to_item(filp->f_path.dentry->d_parent); local
337 configfs_create_file(struct config_item * item, const struct configfs_attribute * attr) argument
[all...]
H A Dsymlink.c38 static int item_depth(struct config_item * item) argument
40 struct config_item * p = item;
46 static int item_path_length(struct config_item * item) argument
48 struct config_item * p = item;
57 static void fill_item_path(struct config_item * item, char * buffer, int length) argument
62 for (p = item; p && !configfs_is_root(p); p = p->ci_parent) {
73 struct config_item *item,
76 struct configfs_dirent *target_sd = item->ci_dentry->d_fsdata;
86 sl->sl_target = config_item_get(item);
90 config_item_put(item);
72 create_link(struct config_item *parent_item, struct config_item *item, struct dentry *dentry) argument
235 configfs_get_target_path(struct config_item * item, struct config_item * target, char *path) argument
259 struct config_item *item, *target_item; local
[all...]
H A Ddir.c122 * item's i_mutex class is already setup, so s_depth is now only
124 * with item's i_mutex locked.
299 * @item: config_itemwe're creating directory for.
306 static int configfs_create_dir(struct config_item * item, struct dentry *dentry) argument
308 int error = create_dir(item, dentry);
310 item->ci_dentry = dentry;
396 * @item: config_item we're removing.
402 * Caller holds the mutex of the item's inode
405 static void configfs_remove_dir(struct config_item * item) argument
407 struct dentry * dentry = dget(item
561 detach_attrs(struct config_item * item) argument
590 populate_attrs(struct config_item *item) argument
718 unlink_obj(struct config_item *item) argument
737 link_obj(struct config_item *parent_item, struct config_item *item) argument
814 configfs_attach_item(struct config_item *parent_item, struct config_item *item, struct dentry *dentry) argument
842 configfs_detach_item(struct config_item *item) argument
848 configfs_attach_group(struct config_item *parent_item, struct config_item *item, struct dentry *dentry) argument
887 configfs_detach_group(struct config_item *item) argument
902 client_disconnect_notify(struct config_item *parent_item, struct config_item *item) argument
912 item); local
921 client_drop_item(struct config_item *parent_item, struct config_item *item) argument
935 item); local
1168 struct config_item *item = NULL; local
1341 struct config_item *item; local
[all...]
/fs/xfs/
H A Dxfs_trans_priv.h47 * searched to see if the object is a designated cursor item. If it is, it is
53 * low bit of the item pointer is set if the cursor has been invalidated so
59 struct xfs_log_item *item; member in struct:xfs_ail_cursor
89 * Return a pointer to the first item in the AIL. If the AIL is empty, then
H A Dxfs_filestream.c128 struct xfs_fstrm_item *item = local
131 xfs_filestream_put_ag(item->ip->i_mount, item->ag);
133 trace_xfs_filestream_free(item->ip, item->ag);
135 kmem_free(item);
151 struct xfs_fstrm_item *item; local
262 item = kmem_alloc(sizeof(*item), KM_MAYFAIL);
263 if (!item)
384 struct xfs_fstrm_item *item = local
[all...]
H A Dxfs_log_cil.c84 * Prepare the log item for insertion into the CIL. Calculate the difference in
85 * log space and vectors it will consume, and if it is a new item pin it as
103 * If there is no old LV, this is the first time we've seen the item in
117 /* attach new log vector to log item */
121 * If this is the first time the item is being committed to the
122 * CIL, store the sequence number on the log item so we can
124 * the item is being committed into.
131 * Format log item into a flat buffers
134 * changes on the log item. This enables us to relog the item i
510 struct xfs_log_item *item; local
[all...]
/fs/btrfs/
H A Ddir-item.c30 * collision. data_size indicates how big the item inserted should be. On
34 * The name is not copied into the dir item, you have to do that yourself.
47 struct btrfs_item *item; local
61 item = btrfs_item_nr(path->slots[0]);
63 BUG_ON(data_size > btrfs_item_size(leaf, item));
64 ptr += btrfs_item_size(leaf, item) - data_size;
69 * xattrs work a lot like directories, this inserts an xattr item
117 * insert a directory item in the tree, doing all the magic for
119 * 'location' is the key to stuff into the directory item, 'type' is the
191 * lookup a directory item base
[all...]
H A Dinode-item.c71 * Search all extended backrefs in this item. We're only
154 * Sanity check - did we find the right item for this name?
172 * Common case only one ref in the item, remove the
173 * whole item.
282 struct btrfs_item *item; local
307 item = btrfs_item_nr(path->slots[0]);
309 ptr += btrfs_item_size(leaf, item) - ins_len;
H A Dprint-tree.c40 printk(KERN_INFO "\t\tdev item devid %llu "
157 pr_warn("BTRFS: uuid item with illegal size %lu!\n",
176 struct btrfs_item *item; local
196 item = btrfs_item_nr(i);
202 btrfs_item_offset(l, item), btrfs_item_size(l, item));
H A Droot-tree.c27 * Read a root item from the tree. In case we detect a root item smaller then
31 * kernel that was not aware of the root item structure change.
34 struct btrfs_root_item *item)
41 read_extent_buffer(eb, item, btrfs_item_ptr_offset(eb, slot),
42 min_t(int, len, (int)sizeof(*item)));
43 if (len < sizeof(*item))
45 if (!need_reset && btrfs_root_generation(item)
46 != btrfs_root_generation_v2(item)) {
47 if (btrfs_root_generation_v2(item) !
33 btrfs_read_root_item(struct extent_buffer *eb, int slot, struct btrfs_root_item *item) argument
124 btrfs_set_root_node(struct btrfs_root_item *item, struct extent_buffer *node) argument
135 btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_root_item *item) argument
212 btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_root_item *item) argument
489 struct btrfs_root_item *item = &root->root_item; local
[all...]
H A Dfile-item.c48 struct btrfs_file_extent_item *item; local
62 sizeof(*item));
67 item = btrfs_item_ptr(leaf, path->slots[0],
69 btrfs_set_file_extent_disk_bytenr(leaf, item, disk_offset);
70 btrfs_set_file_extent_disk_num_bytes(leaf, item, disk_num_bytes);
71 btrfs_set_file_extent_offset(leaf, item, offset);
72 btrfs_set_file_extent_num_bytes(leaf, item, num_bytes);
73 btrfs_set_file_extent_ram_bytes(leaf, item, ram_bytes);
74 btrfs_set_file_extent_generation(leaf, item, trans->transid);
75 btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_RE
95 struct btrfs_csum_item *item; local
167 struct btrfs_csum_item *item = NULL; local
314 struct btrfs_csum_item *item; local
690 struct btrfs_csum_item *item; local
[all...]
H A Ddelayed-inode.c317 struct btrfs_delayed_item *item; local
318 item = kmalloc(sizeof(*item) + data_len, GFP_NOFS);
319 if (item) {
320 item->data_len = data_len;
321 item->ins_or_del = 0;
322 item->bytes_reserved = 0;
323 item->delayed_node = NULL;
324 atomic_set(&item->refs, 1);
326 return item;
394 struct btrfs_delayed_item *item; local
408 struct btrfs_delayed_item *item; local
449 __btrfs_add_delayed_insertion_item(struct btrfs_delayed_node *node, struct btrfs_delayed_item *item) argument
456 __btrfs_add_delayed_deletion_item(struct btrfs_delayed_node *node, struct btrfs_delayed_item *item) argument
494 btrfs_release_delayed_item(struct btrfs_delayed_item *item) argument
507 struct btrfs_delayed_item *item = NULL; local
520 struct btrfs_delayed_item *item = NULL; local
529 __btrfs_next_delayed_item( struct btrfs_delayed_item *item) argument
542 btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_delayed_item *item) argument
569 btrfs_delayed_item_release_metadata(struct btrfs_root *root, struct btrfs_delayed_item *item) argument
719 btrfs_batch_insert_items(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_delayed_item *item) argument
898 btrfs_batch_delete_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_delayed_item *item) argument
1516 struct btrfs_delayed_item *item; local
1536 struct btrfs_delayed_item *item; local
1609 struct btrfs_delayed_item *item; local
[all...]
/fs/ocfs2/
H A Duptodate.c43 * item for them)
149 struct ocfs2_meta_cache_item *item; local
152 item = rb_entry(node, struct ocfs2_meta_cache_item, c_node);
155 (unsigned long long) item->c_block);
157 rb_erase(&item->c_node, root);
158 kmem_cache_free(ocfs2_uptodate_cachep, item);
208 sector_t item)
213 if (item == ci->ci_cache.ci_array[i])
220 /* Returns the cache item if found, otherwise NULL.
227 struct ocfs2_meta_cache_item *item local
207 ocfs2_search_cache_array(struct ocfs2_caching_info *ci, sector_t item) argument
247 struct ocfs2_meta_cache_item *item = NULL; local
560 ocfs2_remove_metadata_tree(struct ocfs2_caching_info *ci, struct ocfs2_meta_cache_item *item) argument
575 struct ocfs2_meta_cache_item *item = NULL; local
[all...]
/fs/jffs2/
H A Dsummary.c63 static int jffs2_sum_add_mem(struct jffs2_summary *s, union jffs2_sum_mem *item) argument
66 s->sum_list_head = (union jffs2_sum_mem *) item;
68 s->sum_list_tail->u.next = (union jffs2_sum_mem *) item;
69 s->sum_list_tail = (union jffs2_sum_mem *) item;
71 switch (je16_to_cpu(item->u.nodetype)) {
76 je32_to_cpu(item->i.inode));
79 s->sum_size += JFFS2_SUMMARY_DIRENT_SIZE(item->d.nsize);
82 je32_to_cpu(item->d.ino));
89 je32_to_cpu(item->x.xid), je32_to_cpu(item
[all...]
/fs/nfs/
H A Ddns_resolve.c105 struct nfs_dns_ent *item; local
107 item = container_of(ref, struct nfs_dns_ent, h.ref);
108 kfree(item->hostname);
109 kfree(item);
114 struct nfs_dns_ent *item = kmalloc(sizeof(*item), GFP_KERNEL); local
116 if (item != NULL) {
117 item->hostname = NULL;
118 item->namelen = 0;
119 item
169 struct nfs_dns_ent *item; local
222 struct nfs_dns_ent key, *item; local
270 do_cache_lookup(struct cache_detail *cd, struct nfs_dns_ent *key, struct nfs_dns_ent **item, struct nfs_cache_defer_req *dreq) argument
286 do_cache_lookup_nowait(struct cache_detail *cd, struct nfs_dns_ent *key, struct nfs_dns_ent **item) argument
311 do_cache_lookup_wait(struct cache_detail *cd, struct nfs_dns_ent *key, struct nfs_dns_ent **item) argument
339 struct nfs_dns_ent *item = NULL; local
[all...]
/fs/logfs/
H A Dsegment.c188 struct object_alias_item *item; local
191 list_for_each_entry(item, &block->item_list, list) {
193 block->level, item->child_no, item->val);
211 struct object_alias_item *item; local
219 item = mempool_alloc(super->s_alias_pool, GFP_NOFS);
220 if (!item)
222 memset(item, 0, sizeof(*item));
225 item
258 struct object_alias_item *item; local
482 struct object_alias_item *item, *next; local
525 struct object_alias_item *item; local
[all...]
/fs/nfsd/
H A Dnfs4idmap.c268 idtoname_lookup(struct cache_detail *cd, struct ent *item) argument
270 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h,
271 idtoname_hash(item));
426 nametoid_lookup(struct cache_detail *cd, struct ent *item) argument
428 struct cache_head *ch = sunrpc_cache_lookup(cd, &item->h,
429 nametoid_hash(item));
496 struct ent *key, struct cache_detail *detail, struct ent **item)
500 *item = lookup_fn(detail, key);
501 if (!*item)
504 ret = cache_check(detail, &(*item)
494 idmap_lookup(struct svc_rqst *rqstp, struct ent *(*lookup_fn)(struct cache_detail *, struct ent *), struct ent *key, struct cache_detail *detail, struct ent **item) argument
529 struct ent *item, key = { local
567 struct ent *item, key = { local
[all...]
/fs/ocfs2/cluster/
H A Dnodemanager.c156 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) argument
158 return item ?
159 container_of(to_config_group(item), struct o2nm_cluster,
164 static struct o2nm_node *to_o2nm_node(struct config_item *item) argument
166 return item ? container_of(item, struct o2nm_node, nd_item) : NULL;
169 static void o2nm_node_release(struct config_item *item) argument
171 struct o2nm_node *node = to_o2nm_node(item);
409 static ssize_t o2nm_node_show(struct config_item *item, argument
413 struct o2nm_node *node = to_o2nm_node(item);
423 o2nm_node_store(struct config_item *item, struct configfs_attribute *attr, const char *page, size_t count) argument
662 o2nm_cluster_show(struct config_item *item, struct configfs_attribute *attr, char *page) argument
676 o2nm_cluster_store(struct config_item *item, struct configfs_attribute *attr, const char *page, size_t count) argument
718 o2nm_node_group_drop_item(struct config_group *group, struct config_item *item) argument
766 o2nm_cluster_release(struct config_item *item) argument
853 o2nm_cluster_group_drop_item(struct config_group *group, struct config_item *item) argument
892 o2nm_depend_item(struct config_item *item) argument
897 o2nm_undepend_item(struct config_item *item) argument
[all...]
/fs/reiserfs/
H A Ditem_ops.c9 * this contains item handlers for old item types: sd, direct,
15 * explanation of each item handler method? -Hans
44 static void sd_print_item(struct item_head *ih, char *item) argument
48 struct stat_data_v1 *sd = (struct stat_data_v1 *)item;
55 struct stat_data *sd = (struct stat_data *)item;
63 static void sd_check_item(struct item_head *ih, char *item) argument
121 /* direct item functions */
142 static void direct_print_item(struct item_head *ih, char *item) argument
149 printk("%c", item[
153 direct_check_item(struct item_head *ih, char *item) argument
268 indirect_print_item(struct item_head *ih, char *item) argument
291 indirect_check_item(struct item_head *ih, char *item) argument
380 direntry_print_item(struct item_head *ih, char *item) argument
420 direntry_check_item(struct item_head *ih, char *item) argument
665 errcatch_print_item(struct item_head *ih, char *item) argument
671 errcatch_check_item(struct item_head *ih, char *item) argument
[all...]
H A Dlbalance.c12 * copy copy_count entries from source directory item to dest buffer
13 * (creating new item if needed)
21 * either the number of target item, or if we must create a
22 * new item, the number of the item we will create it next to
28 int copy_records_len; /* length of all records in item to be copied */
33 RFALSE(!is_direntry_le_ih(ih), "vs-10000: item must be directory item");
59 * if there are no items in dest or the first/last item in
60 * dest is not item o
1075 char *item; local
1322 char *item; local
[all...]

Completed in 766 milliseconds

123