]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: move fs_info init work into it's own helper function
authorJosef Bacik <josef@toxicpanda.com>
Fri, 24 Jan 2020 14:32:58 +0000 (09:32 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:33 +0000 (17:01 +0100)
commit209a1bfae1a62d45f0bf30f53506d4fe895f577c
tree1f33c8cd22d69c9d78e83ea8fd57594441775d8d
parent0ddd4fe42408d07bc51d884a0e10abb669b25396
btrfs: move fs_info init work into it's own helper function

open_ctree mixes initialization of fs stuff and fs_info stuff, which
makes it confusing when doing things like adding the root leak
detection.  Make a separate function that inits all the static
structures inside of the fs_info needed for the fs to operate, and then
call that before we start setting up the fs_info to be mounted.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c