aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-11-27 12:49:39 -0500
committerDavid Sterba <dsterba@suse.com>2015-12-03 09:02:21 -0500
commit87ad58c5f07444ab2fa083c62b154f38ef0a3035 (patch)
tree177f7e16c25700a402a0577be0f4311801e491b7
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
btrfs: make btrfs_close_one_device static
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/volumes.c3
-rw-r--r--fs/btrfs/volumes.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index a6df8fdc1312..e335938825e1 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -125,6 +125,7 @@ static int btrfs_relocate_sys_chunks(struct btrfs_root *root);
125static void __btrfs_reset_dev_stats(struct btrfs_device *dev); 125static void __btrfs_reset_dev_stats(struct btrfs_device *dev);
126static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev); 126static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
127static void btrfs_dev_stat_print_on_load(struct btrfs_device *device); 127static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
128static void btrfs_close_one_device(struct btrfs_device *device);
128 129
129DEFINE_MUTEX(uuid_mutex); 130DEFINE_MUTEX(uuid_mutex);
130static LIST_HEAD(fs_uuids); 131static LIST_HEAD(fs_uuids);
@@ -6951,7 +6952,7 @@ void btrfs_reset_fs_info_ptr(struct btrfs_fs_info *fs_info)
6951 } 6952 }
6952} 6953}
6953 6954
6954void btrfs_close_one_device(struct btrfs_device *device) 6955static void btrfs_close_one_device(struct btrfs_device *device)
6955{ 6956{
6956 struct btrfs_fs_devices *fs_devices = device->fs_devices; 6957 struct btrfs_fs_devices *fs_devices = device->fs_devices;
6957 struct btrfs_device *new_device; 6958 struct btrfs_device *new_device;
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index ec5712372732..2dc59eba188d 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -566,6 +566,5 @@ static inline void unlock_chunks(struct btrfs_root *root)
566struct list_head *btrfs_get_fs_uuids(void); 566struct list_head *btrfs_get_fs_uuids(void);
567void btrfs_set_fs_info_ptr(struct btrfs_fs_info *fs_info); 567void btrfs_set_fs_info_ptr(struct btrfs_fs_info *fs_info);
568void btrfs_reset_fs_info_ptr(struct btrfs_fs_info *fs_info); 568void btrfs_reset_fs_info_ptr(struct btrfs_fs_info *fs_info);
569void btrfs_close_one_device(struct btrfs_device *device);
570 569
571#endif 570#endif