blob: 7a962811dffe08c09e2aa4dfb174d97f8b2854e7 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
David Sterba9888c342018-04-03 19:16:55 +02002
3#ifndef BTRFS_INODE_MAP_H
4#define BTRFS_INODE_MAP_H
Li Zefan581bb052011-04-20 10:06:11 +08005
6void btrfs_init_free_ino_ctl(struct btrfs_root *root);
7void btrfs_unpin_free_ino(struct btrfs_root *root);
8void btrfs_return_ino(struct btrfs_root *root, u64 objectid);
9int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid);
Li Zefan82d59022011-04-20 10:33:24 +080010int btrfs_save_ino_cache(struct btrfs_root *root,
11 struct btrfs_trans_handle *trans);
Li Zefan581bb052011-04-20 10:06:11 +080012
13int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid);
Chandan Rajendraf32e48e2016-01-07 18:56:59 +053014int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid);
Li Zefan581bb052011-04-20 10:06:11 +080015
16#endif