/Linux-v5.15/fs/btrfs/ |
D | delayed-inode.c | 934 struct btrfs_inode_item *inode_item; in __btrfs_update_delayed_inode() local 955 inode_item = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_update_delayed_inode() 957 write_extent_buffer(leaf, &node->inode_item, (unsigned long)inode_item, in __btrfs_update_delayed_inode() 1645 struct btrfs_inode_item *inode_item, in fill_stack_inode_item() argument 1650 btrfs_set_stack_inode_uid(inode_item, i_uid_read(inode)); in fill_stack_inode_item() 1651 btrfs_set_stack_inode_gid(inode_item, i_gid_read(inode)); in fill_stack_inode_item() 1652 btrfs_set_stack_inode_size(inode_item, BTRFS_I(inode)->disk_i_size); in fill_stack_inode_item() 1653 btrfs_set_stack_inode_mode(inode_item, inode->i_mode); in fill_stack_inode_item() 1654 btrfs_set_stack_inode_nlink(inode_item, inode->i_nlink); in fill_stack_inode_item() 1655 btrfs_set_stack_inode_nbytes(inode_item, inode_get_bytes(inode)); in fill_stack_inode_item() [all …]
|
D | delayed-inode.h | 56 struct btrfs_inode_item inode_item; member
|
D | free-space-cache.c | 144 struct btrfs_inode_item *inode_item; in __create_free_space_inode() local 156 inode_item = btrfs_item_ptr(leaf, path->slots[0], in __create_free_space_inode() 159 memzero_extent_buffer(leaf, (unsigned long)inode_item, in __create_free_space_inode() 160 sizeof(*inode_item)); in __create_free_space_inode() 161 btrfs_set_inode_generation(leaf, inode_item, trans->transid); in __create_free_space_inode() 162 btrfs_set_inode_size(leaf, inode_item, 0); in __create_free_space_inode() 163 btrfs_set_inode_nbytes(leaf, inode_item, 0); in __create_free_space_inode() 164 btrfs_set_inode_uid(leaf, inode_item, 0); in __create_free_space_inode() 165 btrfs_set_inode_gid(leaf, inode_item, 0); in __create_free_space_inode() 166 btrfs_set_inode_mode(leaf, inode_item, S_IFREG | 0600); in __create_free_space_inode() [all …]
|
D | inode.c | 3711 struct btrfs_inode_item *inode_item; in btrfs_read_locked_inode() local 3745 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_read_locked_inode() 3747 inode->i_mode = btrfs_inode_mode(leaf, inode_item); in btrfs_read_locked_inode() 3748 set_nlink(inode, btrfs_inode_nlink(leaf, inode_item)); in btrfs_read_locked_inode() 3749 i_uid_write(inode, btrfs_inode_uid(leaf, inode_item)); in btrfs_read_locked_inode() 3750 i_gid_write(inode, btrfs_inode_gid(leaf, inode_item)); in btrfs_read_locked_inode() 3751 btrfs_i_size_write(BTRFS_I(inode), btrfs_inode_size(leaf, inode_item)); in btrfs_read_locked_inode() 3755 inode->i_atime.tv_sec = btrfs_timespec_sec(leaf, &inode_item->atime); in btrfs_read_locked_inode() 3756 inode->i_atime.tv_nsec = btrfs_timespec_nsec(leaf, &inode_item->atime); in btrfs_read_locked_inode() 3758 inode->i_mtime.tv_sec = btrfs_timespec_sec(leaf, &inode_item->mtime); in btrfs_read_locked_inode() [all …]
|
D | tree-log.c | 398 bool inode_item = key->type == BTRFS_INODE_ITEM_KEY; in overwrite_item() local 456 if (inode_item) { in overwrite_item() 477 } else if (inode_item) { in overwrite_item() 2603 struct btrfs_inode_item *inode_item; in replay_one_buffer() local 2606 inode_item = btrfs_item_ptr(eb, i, in replay_one_buffer() 2616 if (btrfs_inode_nlink(eb, inode_item) == 0) { in replay_one_buffer() 2626 mode = btrfs_inode_mode(eb, inode_item); in replay_one_buffer() 4004 struct btrfs_inode_item *inode_item; in log_inode_item() local 4033 sizeof(*inode_item)); in log_inode_item() 4038 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item() [all …]
|
D | ioctl.c | 511 struct btrfs_inode_item *inode_item; in create_subvol() local 576 inode_item = &root_item->inode; in create_subvol() 577 btrfs_set_stack_inode_generation(inode_item, 1); in create_subvol() 578 btrfs_set_stack_inode_size(inode_item, 3); in create_subvol() 579 btrfs_set_stack_inode_nlink(inode_item, 1); in create_subvol() 580 btrfs_set_stack_inode_nbytes(inode_item, in create_subvol() 582 btrfs_set_stack_inode_mode(inode_item, S_IFDIR | 0755); in create_subvol() 586 btrfs_set_stack_inode_flags(inode_item, BTRFS_INODE_ROOT_ITEM_INIT); in create_subvol()
|
D | disk-io.c | 1391 struct btrfs_inode_item *inode_item; in btrfs_add_log_tree() local 1407 inode_item = &log_root->root_item.inode; in btrfs_add_log_tree() 1408 btrfs_set_stack_inode_generation(inode_item, 1); in btrfs_add_log_tree() 1409 btrfs_set_stack_inode_size(inode_item, 3); in btrfs_add_log_tree() 1410 btrfs_set_stack_inode_nlink(inode_item, 1); in btrfs_add_log_tree() 1411 btrfs_set_stack_inode_nbytes(inode_item, in btrfs_add_log_tree() 1413 btrfs_set_stack_inode_mode(inode_item, S_IFDIR | 0755); in btrfs_add_log_tree()
|
D | scrub.c | 639 struct btrfs_inode_item *inode_item; in scrub_print_warning_inode() local 667 inode_item = btrfs_item_ptr(eb, swarn->path->slots[0], in scrub_print_warning_inode() 669 nlink = btrfs_inode_nlink(eb, inode_item); in scrub_print_warning_inode()
|