/fs/btrfs/ |
D | delayed-inode.c | 1019 struct btrfs_inode_item *inode_item; in __btrfs_update_delayed_inode() local 1043 inode_item = btrfs_item_ptr(leaf, path->slots[0], in __btrfs_update_delayed_inode() 1045 write_extent_buffer(leaf, &node->inode_item, (unsigned long)inode_item, in __btrfs_update_delayed_inode() 1753 struct btrfs_inode_item *inode_item, in fill_stack_inode_item() argument 1756 btrfs_set_stack_inode_uid(inode_item, i_uid_read(inode)); in fill_stack_inode_item() 1757 btrfs_set_stack_inode_gid(inode_item, i_gid_read(inode)); in fill_stack_inode_item() 1758 btrfs_set_stack_inode_size(inode_item, BTRFS_I(inode)->disk_i_size); in fill_stack_inode_item() 1759 btrfs_set_stack_inode_mode(inode_item, inode->i_mode); in fill_stack_inode_item() 1760 btrfs_set_stack_inode_nlink(inode_item, inode->i_nlink); in fill_stack_inode_item() 1761 btrfs_set_stack_inode_nbytes(inode_item, inode_get_bytes(inode)); in fill_stack_inode_item() [all …]
|
D | free-space-cache.c | 139 struct btrfs_inode_item *inode_item; in __create_free_space_inode() local 153 inode_item = btrfs_item_ptr(leaf, path->slots[0], in __create_free_space_inode() 156 memzero_extent_buffer(leaf, (unsigned long)inode_item, in __create_free_space_inode() 157 sizeof(*inode_item)); in __create_free_space_inode() 158 btrfs_set_inode_generation(leaf, inode_item, trans->transid); in __create_free_space_inode() 159 btrfs_set_inode_size(leaf, inode_item, 0); in __create_free_space_inode() 160 btrfs_set_inode_nbytes(leaf, inode_item, 0); in __create_free_space_inode() 161 btrfs_set_inode_uid(leaf, inode_item, 0); in __create_free_space_inode() 162 btrfs_set_inode_gid(leaf, inode_item, 0); in __create_free_space_inode() 163 btrfs_set_inode_mode(leaf, inode_item, S_IFREG | 0600); in __create_free_space_inode() [all …]
|
D | delayed-inode.h | 56 struct btrfs_inode_item inode_item; member
|
D | inode.c | 3895 struct btrfs_inode_item *inode_item; in btrfs_read_locked_inode() local 3929 inode_item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_read_locked_inode() 3931 inode->i_mode = btrfs_inode_mode(leaf, inode_item); in btrfs_read_locked_inode() 3932 set_nlink(inode, btrfs_inode_nlink(leaf, inode_item)); in btrfs_read_locked_inode() 3933 i_uid_write(inode, btrfs_inode_uid(leaf, inode_item)); in btrfs_read_locked_inode() 3934 i_gid_write(inode, btrfs_inode_gid(leaf, inode_item)); in btrfs_read_locked_inode() 3935 btrfs_i_size_write(BTRFS_I(inode), btrfs_inode_size(leaf, inode_item)); in btrfs_read_locked_inode() 3937 inode->i_atime.tv_sec = btrfs_timespec_sec(leaf, &inode_item->atime); in btrfs_read_locked_inode() 3938 inode->i_atime.tv_nsec = btrfs_timespec_nsec(leaf, &inode_item->atime); in btrfs_read_locked_inode() 3940 inode->i_mtime.tv_sec = btrfs_timespec_sec(leaf, &inode_item->mtime); in btrfs_read_locked_inode() [all …]
|
D | tree-log.c | 359 bool inode_item = key->type == BTRFS_INODE_ITEM_KEY; in overwrite_item() local 417 if (inode_item) { in overwrite_item() 438 } else if (inode_item) { in overwrite_item() 2610 struct btrfs_inode_item *inode_item; in replay_one_buffer() local 2613 inode_item = btrfs_item_ptr(eb, i, in replay_one_buffer() 2623 if (btrfs_inode_nlink(eb, inode_item) == 0) { in replay_one_buffer() 2633 mode = btrfs_inode_mode(eb, inode_item); in replay_one_buffer() 3957 struct btrfs_inode_item *inode_item; in log_inode_item() local 3961 &inode->location, sizeof(*inode_item)); in log_inode_item() 3964 inode_item = btrfs_item_ptr(path->nodes[0], path->slots[0], in log_inode_item() [all …]
|
D | disk-io.c | 1355 struct btrfs_inode_item *inode_item; in btrfs_add_log_tree() local 1364 inode_item = &log_root->root_item.inode; in btrfs_add_log_tree() 1365 btrfs_set_stack_inode_generation(inode_item, 1); in btrfs_add_log_tree() 1366 btrfs_set_stack_inode_size(inode_item, 3); in btrfs_add_log_tree() 1367 btrfs_set_stack_inode_nlink(inode_item, 1); in btrfs_add_log_tree() 1368 btrfs_set_stack_inode_nbytes(inode_item, in btrfs_add_log_tree() 1370 btrfs_set_stack_inode_mode(inode_item, S_IFDIR | 0755); in btrfs_add_log_tree()
|
D | ioctl.c | 579 struct btrfs_inode_item *inode_item; in create_subvol() local 640 inode_item = &root_item->inode; in create_subvol() 641 btrfs_set_stack_inode_generation(inode_item, 1); in create_subvol() 642 btrfs_set_stack_inode_size(inode_item, 3); in create_subvol() 643 btrfs_set_stack_inode_nlink(inode_item, 1); in create_subvol() 644 btrfs_set_stack_inode_nbytes(inode_item, in create_subvol() 646 btrfs_set_stack_inode_mode(inode_item, S_IFDIR | 0755); in create_subvol() 650 btrfs_set_stack_inode_flags(inode_item, BTRFS_INODE_ROOT_ITEM_INIT); in create_subvol()
|
D | scrub.c | 645 struct btrfs_inode_item *inode_item; in scrub_print_warning_inode() local 676 inode_item = btrfs_item_ptr(eb, swarn->path->slots[0], in scrub_print_warning_inode() 678 isize = btrfs_inode_size(eb, inode_item); in scrub_print_warning_inode() 679 nlink = btrfs_inode_nlink(eb, inode_item); in scrub_print_warning_inode()
|