Home
last modified time | relevance | path

Searched refs:dir_item (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/fs/btrfs/
Ddir-item.c60 struct btrfs_dir_item *dir_item; in btrfs_insert_xattr_item() local
74 data_size = sizeof(*dir_item) + name_len + data_len; in btrfs_insert_xattr_item()
75 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item()
77 if (IS_ERR(dir_item)) in btrfs_insert_xattr_item()
78 return PTR_ERR(dir_item); in btrfs_insert_xattr_item()
83 btrfs_set_dir_item_key(leaf, dir_item, &disk_key); in btrfs_insert_xattr_item()
84 btrfs_set_dir_type(leaf, dir_item, BTRFS_FT_XATTR); in btrfs_insert_xattr_item()
85 btrfs_set_dir_name_len(leaf, dir_item, name_len); in btrfs_insert_xattr_item()
86 btrfs_set_dir_transid(leaf, dir_item, trans->transid); in btrfs_insert_xattr_item()
87 btrfs_set_dir_data_len(leaf, dir_item, data_len); in btrfs_insert_xattr_item()
[all …]
Ddelayed-inode.c1422 struct btrfs_dir_item *dir_item; in btrfs_insert_delayed_dir_index() local
1431 delayed_item = btrfs_alloc_delayed_item(sizeof(*dir_item) + name_len, in btrfs_insert_delayed_dir_index()
1441 dir_item = (struct btrfs_dir_item *)delayed_item->data; in btrfs_insert_delayed_dir_index()
1442 dir_item->location = *disk_key; in btrfs_insert_delayed_dir_index()
1443 btrfs_set_stack_dir_transid(dir_item, trans->transid); in btrfs_insert_delayed_dir_index()
1444 btrfs_set_stack_dir_data_len(dir_item, 0); in btrfs_insert_delayed_dir_index()
1445 btrfs_set_stack_dir_name_len(dir_item, name_len); in btrfs_insert_delayed_dir_index()
1446 btrfs_set_stack_dir_type(dir_item, type); in btrfs_insert_delayed_dir_index()
1447 memcpy((char *)(dir_item + 1), name, name_len); in btrfs_insert_delayed_dir_index()
Dtransaction.c1612 struct btrfs_dir_item *dir_item; in create_pending_snapshot() local
1675 dir_item = btrfs_lookup_dir_item(NULL, parent_root, path, in create_pending_snapshot()
1679 if (dir_item != NULL && !IS_ERR(dir_item)) { in create_pending_snapshot()
1682 } else if (IS_ERR(dir_item)) { in create_pending_snapshot()
1683 ret = PTR_ERR(dir_item); in create_pending_snapshot()
Dtree-log.c6309 struct btrfs_dir_item *dir_item; in log_new_delayed_dentries() local
6314 dir_item = (struct btrfs_dir_item *)item->data; in log_new_delayed_dentries()
6315 btrfs_disk_key_to_cpu(&key, &dir_item->location); in log_new_delayed_dentries()
6331 if (btrfs_stack_dir_type(dir_item) == BTRFS_FT_DIR) in log_new_delayed_dentries()