btrfs-progs: Introduce macro to calculate backup superblock offset
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 24 Jan 2017 03:03:06 +0000 (11:03 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:45 +0000 (13:00 +0100)
commitc92852205265cf8ed48671b2405b071fe5870a97
tree1abc18acd0483005ca3cba352ce17666be6762ec
parenta2203246ae483d09114329d5d1f898efb23d6168
btrfs-progs: Introduce macro to calculate backup superblock offset

Introduce a new macro, BTRFS_SB_OFFSET() to calculate backup superblock
offset, this is handy if one wants to initialize static array at
declaration time.

Suggested-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
disk-io.h