Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
David Sterba | 9888c34 | 2018-04-03 19:16:55 +0200 | [diff] [blame] | 2 | |
| 3 | #ifndef BTRFS_INODE_MAP_H |
| 4 | #define BTRFS_INODE_MAP_H |
Li Zefan | 581bb05 | 2011-04-20 10:06:11 +0800 | [diff] [blame] | 5 | |
| 6 | void btrfs_init_free_ino_ctl(struct btrfs_root *root); |
| 7 | void btrfs_unpin_free_ino(struct btrfs_root *root); |
| 8 | void btrfs_return_ino(struct btrfs_root *root, u64 objectid); |
| 9 | int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid); |
Li Zefan | 82d5902 | 2011-04-20 10:33:24 +0800 | [diff] [blame] | 10 | int btrfs_save_ino_cache(struct btrfs_root *root, |
| 11 | struct btrfs_trans_handle *trans); |
Li Zefan | 581bb05 | 2011-04-20 10:06:11 +0800 | [diff] [blame] | 12 | |
| 13 | int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid); |
Chandan Rajendra | f32e48e | 2016-01-07 18:56:59 +0530 | [diff] [blame] | 14 | int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid); |
Li Zefan | 581bb05 | 2011-04-20 10:06:11 +0800 | [diff] [blame] | 15 | |
| 16 | #endif |