]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove btrfs_raid_bio::fs_info member
authorQu Wenruo <wqu@suse.com>
Thu, 23 Sep 2021 06:00:09 +0000 (14:00 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:03 +0000 (19:08 +0200)
commitfb7318b043377c9b6c81467c8eabbaf4d254554d
treeccbd811277924b32b28ff76989442812f52652bc
parentd127ff9aee79efe3d78d1b39aa713334657c446e
btrfs: remove btrfs_raid_bio::fs_info member

We can grab fs_info reliably from btrfs_raid_bio::bioc, as the bioc is
always passed into alloc_rbio(), and only get released when the raid bio
is released.

Remove btrfs_raid_bio::fs_info member, and cleanup all the @fs_info
parameters for alloc_rbio() callers.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c
fs/btrfs/raid56.h
fs/btrfs/scrub.c
fs/btrfs/volumes.c