blob: 6734ec92a1e92c8259d7250a3327fb99a41e5c1c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Li Zefan581bb052011-04-20 10:06:11 +08002#ifndef __BTRFS_INODE_MAP
3#define __BTRFS_INODE_MAP
4
5void btrfs_init_free_ino_ctl(struct btrfs_root *root);
6void btrfs_unpin_free_ino(struct btrfs_root *root);
7void btrfs_return_ino(struct btrfs_root *root, u64 objectid);
8int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid);
Li Zefan82d59022011-04-20 10:33:24 +08009int btrfs_save_ino_cache(struct btrfs_root *root,
10 struct btrfs_trans_handle *trans);
Li Zefan581bb052011-04-20 10:06:11 +080011
12int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid);
Chandan Rajendraf32e48e2016-01-07 18:56:59 +053013int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid);
Li Zefan581bb052011-04-20 10:06:11 +080014
15#endif