diff options
author | Nikolay Borisov <nborisov@suse.com> | 2020-11-26 15:10:37 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-09 19:16:05 +0100 |
commit | ec7d6dfd73b2de1c6bc36f832542061b0ca0e0ff (patch) | |
tree | 602e1cbeb1c517de06a253fa191ef5e2967cb8a0 /fs/btrfs/disk-io.h | |
parent | 1201b58b67b3642fd8cafa3604402bee40df1a6d (diff) |
btrfs: move btrfs_find_highest_objectid/btrfs_find_free_objectid to disk-io.c
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>
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r-- | fs/btrfs/disk-io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 40e81d6e481e..984410144a97 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h @@ -131,6 +131,8 @@ struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, int btree_lock_page_hook(struct page *page, void *data, void (*flush_fn)(void *)); int btrfs_get_num_tolerated_disk_barrier_failures(u64 flags); +int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid); +int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid); int __init btrfs_end_io_wq_init(void); void __cold btrfs_end_io_wq_exit(void); |