backref.h (c1144d29f405ce1f4e6ede6482beb3d0d09750c6) backref.h (5911c8fe05c54c9f74a6467650e6493e4808cd01)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2011 STRATO. All rights reserved.
4 */
5
6#ifndef BTRFS_BACKREF_H
7#define BTRFS_BACKREF_H
8

--- 43 unchanged lines hidden (view full) ---

52struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
53 struct btrfs_path *path);
54void free_ipath(struct inode_fs_paths *ipath);
55
56int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid,
57 u64 start_off, struct btrfs_path *path,
58 struct btrfs_inode_extref **ret_extref,
59 u64 *found_off);
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2011 STRATO. All rights reserved.
4 */
5
6#ifndef BTRFS_BACKREF_H
7#define BTRFS_BACKREF_H
8

--- 43 unchanged lines hidden (view full) ---

52struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
53 struct btrfs_path *path);
54void free_ipath(struct inode_fs_paths *ipath);
55
56int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid,
57 u64 start_off, struct btrfs_path *path,
58 struct btrfs_inode_extref **ret_extref,
59 u64 *found_off);
60int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr);
60int btrfs_check_shared(struct btrfs_root *root, u64 inum, u64 bytenr,
61 struct ulist *roots, struct ulist *tmp_ulist);
61
62int __init btrfs_prelim_ref_init(void);
63void __cold btrfs_prelim_ref_exit(void);
64
65struct prelim_ref {
66 struct rb_node rbnode;
67 u64 root_id;
68 struct btrfs_key key_for_search;
69 int level;
70 int count;
71 struct extent_inode_elem *inode_list;
72 u64 parent;
73 u64 wanted_disk_byte;
74};
75
76#endif
62
63int __init btrfs_prelim_ref_init(void);
64void __cold btrfs_prelim_ref_exit(void);
65
66struct prelim_ref {
67 struct rb_node rbnode;
68 u64 root_id;
69 struct btrfs_key key_for_search;
70 int level;
71 int count;
72 struct extent_inode_elem *inode_list;
73 u64 parent;
74 u64 wanted_disk_byte;
75};
76
77#endif