OSDN Git Service

btrfs: merge module cleanup sequence to one helper
authorAnand Jain <anand.jain@oracle.com>
Wed, 19 Oct 2022 16:21:42 +0000 (21:51 +0530)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:43 +0000 (18:00 +0100)
commit82c0efd3cd5d4ecce028da75d29e3345535b3389
tree2ed3c70b277ece4299f729ac7b6fd5fe4697201f
parent02bc392798f9bf8105d50b2fec44b5b2e3c80d47
btrfs: merge module cleanup sequence to one helper

The module exit function exit_btrfs_fs() is duplicating a section of code
in init_btrfs_fs(). Add a helper to remove the duplicated code. Due
to the init/exit section requirements the function must be inline and
not a plain static as it could cause section mismatch.

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