Home
last modified time | relevance | path

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

/linux-6.1.9/fs/btrfs/
Ddelayed-inode.c999 struct btrfs_inode_item *inode_item; in __btrfs_update_delayed_inode() local
1020 inode_item = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_update_delayed_inode()
1022 write_extent_buffer(leaf, &node->inode_item, (unsigned long)inode_item, in __btrfs_update_delayed_inode()
1773 struct btrfs_inode_item *inode_item, in fill_stack_inode_item() argument
1778 btrfs_set_stack_inode_uid(inode_item, i_uid_read(inode)); in fill_stack_inode_item()
1779 btrfs_set_stack_inode_gid(inode_item, i_gid_read(inode)); in fill_stack_inode_item()
1780 btrfs_set_stack_inode_size(inode_item, BTRFS_I(inode)->disk_i_size); in fill_stack_inode_item()
1781 btrfs_set_stack_inode_mode(inode_item, inode->i_mode); in fill_stack_inode_item()
1782 btrfs_set_stack_inode_nlink(inode_item, inode->i_nlink); in fill_stack_inode_item()
1783 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.c162 struct btrfs_inode_item *inode_item; in __create_free_space_inode() local
174 inode_item = btrfs_item_ptr(leaf, path->slots[0], in __create_free_space_inode()
177 memzero_extent_buffer(leaf, (unsigned long)inode_item, in __create_free_space_inode()
178 sizeof(*inode_item)); in __create_free_space_inode()
179 btrfs_set_inode_generation(leaf, inode_item, trans->transid); in __create_free_space_inode()
180 btrfs_set_inode_size(leaf, inode_item, 0); in __create_free_space_inode()
181 btrfs_set_inode_nbytes(leaf, inode_item, 0); in __create_free_space_inode()
182 btrfs_set_inode_uid(leaf, inode_item, 0); in __create_free_space_inode()
183 btrfs_set_inode_gid(leaf, inode_item, 0); in __create_free_space_inode()
184 btrfs_set_inode_mode(leaf, inode_item, S_IFREG | 0600); in __create_free_space_inode()
[all …]
Dinode.c3936 struct btrfs_inode_item *inode_item; in btrfs_read_locked_inode() local
3970 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_read_locked_inode()
3972 inode->i_mode = btrfs_inode_mode(leaf, inode_item); in btrfs_read_locked_inode()
3973 set_nlink(inode, btrfs_inode_nlink(leaf, inode_item)); in btrfs_read_locked_inode()
3974 i_uid_write(inode, btrfs_inode_uid(leaf, inode_item)); in btrfs_read_locked_inode()
3975 i_gid_write(inode, btrfs_inode_gid(leaf, inode_item)); in btrfs_read_locked_inode()
3976 btrfs_i_size_write(BTRFS_I(inode), btrfs_inode_size(leaf, inode_item)); in btrfs_read_locked_inode()
3980 inode->i_atime.tv_sec = btrfs_timespec_sec(leaf, &inode_item->atime); in btrfs_read_locked_inode()
3981 inode->i_atime.tv_nsec = btrfs_timespec_nsec(leaf, &inode_item->atime); in btrfs_read_locked_inode()
3983 inode->i_mtime.tv_sec = btrfs_timespec_sec(leaf, &inode_item->mtime); in btrfs_read_locked_inode()
[all …]
Dtree-log.c367 bool inode_item = key->type == BTRFS_INODE_ITEM_KEY; in do_overwrite_item() local
437 if (inode_item) { in do_overwrite_item()
458 } else if (inode_item) { in do_overwrite_item()
2459 struct btrfs_inode_item *inode_item; in replay_one_buffer() local
2462 inode_item = btrfs_item_ptr(eb, i, in replay_one_buffer()
2472 if (btrfs_inode_nlink(eb, inode_item) == 0) { in replay_one_buffer()
2482 mode = btrfs_inode_mode(eb, inode_item); in replay_one_buffer()
4236 struct btrfs_inode_item *inode_item; in log_inode_item() local
4265 sizeof(*inode_item)); in log_inode_item()
4270 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item()
[all …]
Dioctl.c578 struct btrfs_inode_item *inode_item; in create_subvol() local
653 inode_item = &root_item->inode; in create_subvol()
654 btrfs_set_stack_inode_generation(inode_item, 1); in create_subvol()
655 btrfs_set_stack_inode_size(inode_item, 3); in create_subvol()
656 btrfs_set_stack_inode_nlink(inode_item, 1); in create_subvol()
657 btrfs_set_stack_inode_nbytes(inode_item, in create_subvol()
659 btrfs_set_stack_inode_mode(inode_item, S_IFDIR | 0755); in create_subvol()
663 btrfs_set_stack_inode_flags(inode_item, BTRFS_INODE_ROOT_ITEM_INIT); in create_subvol()
Ddisk-io.c1323 struct btrfs_inode_item *inode_item; in btrfs_add_log_tree() local
1339 inode_item = &log_root->root_item.inode; in btrfs_add_log_tree()
1340 btrfs_set_stack_inode_generation(inode_item, 1); in btrfs_add_log_tree()
1341 btrfs_set_stack_inode_size(inode_item, 3); in btrfs_add_log_tree()
1342 btrfs_set_stack_inode_nlink(inode_item, 1); in btrfs_add_log_tree()
1343 btrfs_set_stack_inode_nbytes(inode_item, in btrfs_add_log_tree()
1345 btrfs_set_stack_inode_mode(inode_item, S_IFDIR | 0755); in btrfs_add_log_tree()
Dscrub.c805 struct btrfs_inode_item *inode_item; in scrub_print_warning_inode() local
833 inode_item = btrfs_item_ptr(eb, swarn->path->slots[0], in scrub_print_warning_inode()
835 nlink = btrfs_inode_nlink(eb, inode_item); in scrub_print_warning_inode()