[ Upstream commitec7d6dfd73
] Those functions are going to be used even after inode cache is removed so moved them to a more appropriate place. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Stable-dep-of:0004ff15ea
("btrfs: fix space cache inconsistency after error loading it from disk") Signed-off-by: Sasha Levin <sashal@kernel.org>
14 lines
424 B
C
14 lines
424 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef BTRFS_INODE_MAP_H
|
|
#define BTRFS_INODE_MAP_H
|
|
|
|
void btrfs_init_free_ino_ctl(struct btrfs_root *root);
|
|
void btrfs_unpin_free_ino(struct btrfs_root *root);
|
|
void btrfs_return_ino(struct btrfs_root *root, u64 objectid);
|
|
int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid);
|
|
int btrfs_save_ino_cache(struct btrfs_root *root,
|
|
struct btrfs_trans_handle *trans);
|
|
|
|
#endif
|