Home
last modified time | relevance | path

Searched refs:inode_item (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/fs/btrfs/
Dfree-space-cache.c105 struct btrfs_inode_item *inode_item; in create_free_space_inode() local
119 inode_item = btrfs_item_ptr(leaf, path->slots[0], in create_free_space_inode()
122 memset_extent_buffer(leaf, 0, (unsigned long)inode_item, in create_free_space_inode()
123 sizeof(*inode_item)); in create_free_space_inode()
124 btrfs_set_inode_generation(leaf, inode_item, trans->transid); in create_free_space_inode()
125 btrfs_set_inode_size(leaf, inode_item, 0); in create_free_space_inode()
126 btrfs_set_inode_nbytes(leaf, inode_item, 0); in create_free_space_inode()
127 btrfs_set_inode_uid(leaf, inode_item, 0); in create_free_space_inode()
128 btrfs_set_inode_gid(leaf, inode_item, 0); in create_free_space_inode()
129 btrfs_set_inode_mode(leaf, inode_item, S_IFREG | 0600); in create_free_space_inode()
[all …]
Dioctl.c321 struct btrfs_inode_item *inode_item; in create_subvol() local
374 inode_item = &root_item.inode; in create_subvol()
375 memset(inode_item, 0, sizeof(*inode_item)); in create_subvol()
376 inode_item->generation = cpu_to_le64(1); in create_subvol()
377 inode_item->size = cpu_to_le64(3); in create_subvol()
378 inode_item->nlink = cpu_to_le32(1); in create_subvol()
379 inode_item->nbytes = cpu_to_le64(root->leafsize); in create_subvol()
380 inode_item->mode = cpu_to_le32(S_IFDIR | 0755); in create_subvol()
384 inode_item->flags = cpu_to_le64(BTRFS_INODE_ROOT_ITEM_INIT); in create_subvol()
Dctree.h1497 btrfs_inode_atime(struct btrfs_inode_item *inode_item) in btrfs_inode_atime() argument
1499 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_atime()
1505 btrfs_inode_mtime(struct btrfs_inode_item *inode_item) in btrfs_inode_mtime() argument
1507 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_mtime()
1513 btrfs_inode_ctime(struct btrfs_inode_item *inode_item) in btrfs_inode_ctime() argument
1515 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_ctime()
1521 btrfs_inode_otime(struct btrfs_inode_item *inode_item) in btrfs_inode_otime() argument
1523 unsigned long ptr = (unsigned long)inode_item; in btrfs_inode_otime()
Dinode.c2491 struct btrfs_inode_item *inode_item; in btrfs_read_locked_inode() local
2509 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_read_locked_inode()
2512 inode->i_mode = btrfs_inode_mode(leaf, inode_item); in btrfs_read_locked_inode()
2513 inode->i_nlink = btrfs_inode_nlink(leaf, inode_item); in btrfs_read_locked_inode()
2514 inode->i_uid = btrfs_inode_uid(leaf, inode_item); in btrfs_read_locked_inode()
2515 inode->i_gid = btrfs_inode_gid(leaf, inode_item); in btrfs_read_locked_inode()
2516 btrfs_i_size_write(inode, btrfs_inode_size(leaf, inode_item)); in btrfs_read_locked_inode()
2518 tspec = btrfs_inode_atime(inode_item); in btrfs_read_locked_inode()
2522 tspec = btrfs_inode_mtime(inode_item); in btrfs_read_locked_inode()
2526 tspec = btrfs_inode_ctime(inode_item); in btrfs_read_locked_inode()
[all …]
Dtree-log.c1613 struct btrfs_inode_item *inode_item; in replay_one_buffer() local
1616 inode_item = btrfs_item_ptr(eb, i, in replay_one_buffer()
1618 mode = btrfs_inode_mode(eb, inode_item); in replay_one_buffer()
2606 struct btrfs_inode_item *inode_item; in copy_items() local
2646 inode_item = btrfs_item_ptr(dst_path->nodes[0], in copy_items()
2649 btrfs_set_inode_size(dst_path->nodes[0], inode_item, 0); in copy_items()
2657 inode_item, 0); in copy_items()
Ddisk-io.c1197 struct btrfs_inode_item *inode_item; in btrfs_add_log_tree() local
1206 inode_item = &log_root->root_item.inode; in btrfs_add_log_tree()
1207 inode_item->generation = cpu_to_le64(1); in btrfs_add_log_tree()
1208 inode_item->size = cpu_to_le64(3); in btrfs_add_log_tree()
1209 inode_item->nlink = cpu_to_le32(1); in btrfs_add_log_tree()
1210 inode_item->nbytes = cpu_to_le64(root->leafsize); in btrfs_add_log_tree()
1211 inode_item->mode = cpu_to_le32(S_IFDIR | 0755); in btrfs_add_log_tree()