Home
last modified time | relevance | path

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

/linux-6.6.21/fs/btrfs/
Ddelayed-inode.c1008 struct btrfs_inode_item *inode_item; in __btrfs_update_delayed_inode() local
1029 inode_item = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_update_delayed_inode()
1031 write_extent_buffer(leaf, &node->inode_item, (unsigned long)inode_item, in __btrfs_update_delayed_inode()
1814 struct btrfs_inode_item *inode_item, in fill_stack_inode_item() argument
1819 btrfs_set_stack_inode_uid(inode_item, i_uid_read(inode)); in fill_stack_inode_item()
1820 btrfs_set_stack_inode_gid(inode_item, i_gid_read(inode)); in fill_stack_inode_item()
1821 btrfs_set_stack_inode_size(inode_item, BTRFS_I(inode)->disk_i_size); in fill_stack_inode_item()
1822 btrfs_set_stack_inode_mode(inode_item, inode->i_mode); in fill_stack_inode_item()
1823 btrfs_set_stack_inode_nlink(inode_item, inode->i_nlink); in fill_stack_inode_item()
1824 btrfs_set_stack_inode_nbytes(inode_item, inode_get_bytes(inode)); in fill_stack_inode_item()
[all …]
Ddelayed-inode.h57 struct btrfs_inode_item inode_item; member
Dfree-space-cache.c171 struct btrfs_inode_item *inode_item; in __create_free_space_inode() local
183 inode_item = btrfs_item_ptr(leaf, path->slots[0], in __create_free_space_inode()
186 memzero_extent_buffer(leaf, (unsigned long)inode_item, in __create_free_space_inode()
187 sizeof(*inode_item)); in __create_free_space_inode()
188 btrfs_set_inode_generation(leaf, inode_item, trans->transid); in __create_free_space_inode()
189 btrfs_set_inode_size(leaf, inode_item, 0); in __create_free_space_inode()
190 btrfs_set_inode_nbytes(leaf, inode_item, 0); in __create_free_space_inode()
191 btrfs_set_inode_uid(leaf, inode_item, 0); in __create_free_space_inode()
192 btrfs_set_inode_gid(leaf, inode_item, 0); in __create_free_space_inode()
193 btrfs_set_inode_mode(leaf, inode_item, S_IFREG | 0600); in __create_free_space_inode()
[all …]
Dinode.c144 struct btrfs_inode_item *inode_item; in data_reloc_print_warning_inode() local
171 inode_item = btrfs_item_ptr(eb, warn->path.slots[0], struct btrfs_inode_item); in data_reloc_print_warning_inode()
172 nlink = btrfs_inode_nlink(eb, inode_item); in data_reloc_print_warning_inode()
3728 struct btrfs_inode_item *inode_item; in btrfs_read_locked_inode() local
3762 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_read_locked_inode()
3764 inode->i_mode = btrfs_inode_mode(leaf, inode_item); in btrfs_read_locked_inode()
3765 set_nlink(inode, btrfs_inode_nlink(leaf, inode_item)); in btrfs_read_locked_inode()
3766 i_uid_write(inode, btrfs_inode_uid(leaf, inode_item)); in btrfs_read_locked_inode()
3767 i_gid_write(inode, btrfs_inode_gid(leaf, inode_item)); in btrfs_read_locked_inode()
3768 btrfs_i_size_write(BTRFS_I(inode), btrfs_inode_size(leaf, inode_item)); in btrfs_read_locked_inode()
[all …]
Dtree-log.c388 bool inode_item = key->type == BTRFS_INODE_ITEM_KEY; in overwrite_item() local
452 if (inode_item) { in overwrite_item()
473 } else if (inode_item) { in overwrite_item()
2420 struct btrfs_inode_item *inode_item; in replay_one_buffer() local
2423 inode_item = btrfs_item_ptr(eb, i, in replay_one_buffer()
2433 if (btrfs_inode_nlink(eb, inode_item) == 0) { in replay_one_buffer()
2443 mode = btrfs_inode_mode(eb, inode_item); in replay_one_buffer()
4177 struct btrfs_inode_item *inode_item; in log_inode_item() local
4206 sizeof(*inode_item)); in log_inode_item()
4211 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item()
[all …]
Dioctl.c591 struct btrfs_inode_item *inode_item; in create_subvol() local
668 inode_item = &root_item->inode; in create_subvol()
669 btrfs_set_stack_inode_generation(inode_item, 1); in create_subvol()
670 btrfs_set_stack_inode_size(inode_item, 3); in create_subvol()
671 btrfs_set_stack_inode_nlink(inode_item, 1); in create_subvol()
672 btrfs_set_stack_inode_nbytes(inode_item, in create_subvol()
674 btrfs_set_stack_inode_mode(inode_item, S_IFDIR | 0755); in create_subvol()
678 btrfs_set_stack_inode_flags(inode_item, BTRFS_INODE_ROOT_ITEM_INIT); in create_subvol()
Ddisk-io.c979 struct btrfs_inode_item *inode_item; in btrfs_add_log_tree() local
995 inode_item = &log_root->root_item.inode; in btrfs_add_log_tree()
996 btrfs_set_stack_inode_generation(inode_item, 1); in btrfs_add_log_tree()
997 btrfs_set_stack_inode_size(inode_item, 3); in btrfs_add_log_tree()
998 btrfs_set_stack_inode_nlink(inode_item, 1); in btrfs_add_log_tree()
999 btrfs_set_stack_inode_nbytes(inode_item, in btrfs_add_log_tree()
1001 btrfs_set_stack_inode_mode(inode_item, S_IFDIR | 0755); in btrfs_add_log_tree()
Dscrub.c397 struct btrfs_inode_item *inode_item; in scrub_print_warning_inode() local
425 inode_item = btrfs_item_ptr(eb, swarn->path->slots[0], in scrub_print_warning_inode()
427 nlink = btrfs_inode_nlink(eb, inode_item); in scrub_print_warning_inode()