• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/fs/btrfs/

Lines Matching refs:item

45 	struct btrfs_file_extent_item *item;
58 sizeof(*item));
63 item = btrfs_item_ptr(leaf, path->slots[0],
65 btrfs_set_file_extent_disk_bytenr(leaf, item, disk_offset);
66 btrfs_set_file_extent_disk_num_bytes(leaf, item, disk_num_bytes);
67 btrfs_set_file_extent_offset(leaf, item, offset);
68 btrfs_set_file_extent_num_bytes(leaf, item, num_bytes);
69 btrfs_set_file_extent_ram_bytes(leaf, item, ram_bytes);
70 btrfs_set_file_extent_generation(leaf, item, trans->transid);
71 btrfs_set_file_extent_type(leaf, item, BTRFS_FILE_EXTENT_REG);
72 btrfs_set_file_extent_compression(leaf, item, compression);
73 btrfs_set_file_extent_encryption(leaf, item, encryption);
74 btrfs_set_file_extent_other_encoding(leaf, item, other_encoding);
90 struct btrfs_csum_item *item;
123 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item);
124 item = (struct btrfs_csum_item *)((unsigned char *)item +
126 return item;
168 struct btrfs_csum_item *item = NULL;
187 if (!item || disk_bytenr < item_start_offset ||
192 if (item)
194 item = btrfs_lookup_csum(NULL, root->fs_info->csum_root,
196 if (IS_ERR(item)) {
197 ret = PTR_ERR(item);
212 item = NULL;
225 item = btrfs_item_ptr(path->nodes[0], path->slots[0],
237 ((unsigned long)item) + diff,
273 struct btrfs_csum_item *item;
334 item = btrfs_item_ptr(path->nodes[0], path->slots[0],
354 ((unsigned long)item) +
490 * A simple truncate off the end of the item
571 /* delete the entire item, it is inside our range */
586 * we need to split this item and insert a new one.
591 * The trick here is the max size of a csum item leaves
593 * item header. So, we split the item in place,
596 * a nicely formed csum item that we can neatly
613 * item changed size or key
645 struct btrfs_csum_item *item;
670 item = btrfs_lookup_csum(trans, root, path, sector_sum->bytenr, 1);
671 if (!IS_ERR(item)) {
676 ret = PTR_ERR(item);
692 /* we didn't find a csum item, insert one */
714 * at this point, we know the tree has an item, but it isn't big
745 * is the item big enough already? we dropped our lock
795 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item);
797 item = (struct btrfs_csum_item *)((unsigned char *)item +
807 (unsigned long)item + csum_size >= map_start + map_len) {
813 err = map_private_extent_buffer(leaf, (unsigned long)item,
821 memcpy(eb_token + ((unsigned long)item & (PAGE_CACHE_SIZE - 1)),
825 (unsigned long)item, csum_size);
831 item = (struct btrfs_csum_item *)((char *)item +
833 if (item < item_end && bytenr + PAGE_CACHE_SIZE ==