Lines Matching refs:root
106 struct btrfs_root *root = inode->root; in drop_verity_items() local
118 trans = btrfs_start_transaction(root, 1); in drop_verity_items()
132 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in drop_verity_items()
156 ret = btrfs_del_items(trans, root, path, path->slots[0], 1); in drop_verity_items()
216 struct btrfs_root *root = inode->root; in write_key_bytes() local
230 trans = btrfs_start_transaction(root, 1); in write_key_bytes()
246 ret = btrfs_insert_empty_item(trans, root, path, &key, copy_bytes); in write_key_bytes()
295 struct btrfs_root *root = inode->root; in read_key_bytes() local
319 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in read_key_bytes()
392 ret = btrfs_next_leaf(root, path); in read_key_bytes()
422 struct btrfs_root *root = inode->root; in del_orphan() local
435 ret = btrfs_del_orphan_item(trans, root, btrfs_ino(inode)); in del_orphan()
455 struct btrfs_root *root = inode->root; in rollback_verity() local
463 btrfs_handle_fs_error(root->fs_info, ret, in rollback_verity()
473 trans = btrfs_start_transaction(root, 2); in rollback_verity()
477 btrfs_handle_fs_error(root->fs_info, ret, in rollback_verity()
484 ret = btrfs_update_inode(trans, root, inode); in rollback_verity()
522 struct btrfs_root *root = inode->root; in finish_verity() local
544 trans = btrfs_start_transaction(root, 2); in finish_verity()
551 ret = btrfs_update_inode(trans, root, inode); in finish_verity()
558 btrfs_set_fs_compat_ro(root->fs_info, VERITY); in finish_verity()
579 struct btrfs_root *root = inode->root; in btrfs_begin_enable_verity() local
599 trans = btrfs_start_transaction(root, 1); in btrfs_begin_enable_verity()
644 btrfs_err(inode->root->fs_info, in btrfs_end_enable_verity()