btrfs: reorder initialization before the mount locks uuid_mutex
authorDavid Sterba <dsterba@suse.com>
Tue, 19 Jun 2018 16:01:24 +0000 (18:01 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:48 +0000 (13:12 +0200)
commit399f7f4c42e8a58c8456264d5112287aefe44cf4
tree6f0a570e594a7a0bac0158483cc8873d654de96c
parent5139cff598d42b1e531f40c84691a7e945f04553
btrfs: reorder initialization before the mount locks uuid_mutex

In preparation to take a big lock, move resource initialization before
the critical section. It's not obvious from the diff, the desired order
is:

- initialize mount security options
- allocate temporary fs_info
- allocate superblock buffers

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