btrfs: set fs_devices->seed directly
authorAnand Jain <anand.jain@oracle.com>
Thu, 9 Nov 2017 15:45:23 +0000 (23:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:13 +0000 (16:08 +0100)
commit71f8a8d2c1ee65589b3f0ec5f2306723ea76c1ee
treee46ee2e754a09e933b77e55228788e5f9b7d7c6f
parent02cfe779ccaec421cd4ed53a574c8a6354efa7fe
btrfs: set fs_devices->seed directly

This is in preparation to move a section of code in __btrfs_open_devices()
into a new function so that it can be reused. As we set seeding if any of
the device is having SB flag BTRFS_SUPER_FLAG_SEEDING, so do it in the
device list loop itself. No functional changes.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c