summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2015-03-10 06:38:30 +0800
committerDavid Sterba <dsterba@suse.cz>2015-05-27 12:27:20 +0200
commitc73eccf75bf92e49be30884da32a169b04eb5bc9 (patch)
tree51e7686a745ee57284836e894df53a19bf3e75f7
parent2e7910d6ca359ff1dbe05b74e3d7f353b5b65362 (diff)
downloadop-kernel-dev-c73eccf75bf92e49be30884da32a169b04eb5bc9.zip
op-kernel-dev-c73eccf75bf92e49be30884da32a169b04eb5bc9.tar.gz
Btrfs: introduce btrfs_get_fs_uuids to get fs_uuids
Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--fs/btrfs/volumes.c4
-rw-r--r--fs/btrfs/volumes.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 39ff99e..e500bfa 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -52,6 +52,10 @@ static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
DEFINE_MUTEX(uuid_mutex);
static LIST_HEAD(fs_uuids);
+struct list_head *btrfs_get_fs_uuids(void)
+{
+ return &fs_uuids;
+}
static struct btrfs_fs_devices *__alloc_fs_devices(void)
{
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index e9780e9..ac7e938 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -542,5 +542,6 @@ static inline void unlock_chunks(struct btrfs_root *root)
mutex_unlock(&root->fs_info->chunk_mutex);
}
+struct list_head *btrfs_get_fs_uuids(void);
#endif
OpenPOWER on IntegriCloud