Btrfs: add btrfs_read_dev_one_super() to read one specific SB
authorAnand Jain <anand.jain@oracle.com>
Fri, 14 Aug 2015 10:32:58 +0000 (18:32 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 1 Oct 2015 15:29:38 +0000 (17:29 +0200)
commit29c36d72535deb3d8961b3fb4b6a565190a6c63b
tree173364b301384a61a2ba336f8354770e645d981a
parentd74a625987a134b00749e3912bdb6d3ac83fd71d
Btrfs: add btrfs_read_dev_one_super() to read one specific SB

This uses a chunk of code from btrfs_read_dev_super() and creates
a function called btrfs_read_dev_one_super() so that next patch
can use it for scratch superblock.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
[renamed bufhead to bh]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h