]> git.hungrycats.org Git - linux/commitdiff
btrfs: make the fs root init functions static
authorJosef Bacik <josef@toxicpanda.com>
Wed, 20 Nov 2019 15:15:47 +0000 (07:15 -0800)
committerJosef Bacik <josef@toxicpanda.com>
Fri, 6 Dec 2019 16:34:48 +0000 (08:34 -0800)
Now that the orphan cleanup stuff doesn't use this directly we can just
make them static.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h

index fba2ca4965c4c922df9286d40dbd519b58f264c7..4c55db4b31476b9064c6cb3e5bed38147b348c1b 100644 (file)
@@ -1439,7 +1439,7 @@ alloc_fail:
        goto out;
 }
 
-int btrfs_init_fs_root(struct btrfs_root *root)
+static int btrfs_init_fs_root(struct btrfs_root *root)
 {
        int ret;
        struct btrfs_subvolume_writers *writers;
@@ -1490,8 +1490,8 @@ fail:
        return ret;
 }
 
-struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info,
-                                       u64 root_id)
+static struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info,
+                                              u64 root_id)
 {
        struct btrfs_root *root;
 
index f5ef9ace903a6def7d3c8c5b403df855aa85fe9a..5b38558e164de99b79ae08432d123a3f35dc0203 100644 (file)
@@ -60,9 +60,6 @@ int btrfs_read_dev_one_super(struct block_device *bdev, int copy_num,
 int btrfs_commit_super(struct btrfs_fs_info *fs_info);
 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
                                        struct btrfs_key *key);
-int btrfs_init_fs_root(struct btrfs_root *root);
-struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info,
-                                       u64 root_id);
 int btrfs_insert_fs_root(struct btrfs_fs_info *fs_info,
                         struct btrfs_root *root);
 void btrfs_free_fs_roots(struct btrfs_fs_info *fs_info);