efivarfs: always register filesystem
authorJohan Hovold <johan+linaro@kernel.org>
Thu, 19 Jan 2023 16:42:53 +0000 (17:42 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 26 Jan 2023 20:32:01 +0000 (21:32 +0100)
commit301de9a2055357375a4e1053d9df0f8f3467ff00
tree06623cf2162f32d6008d6323d99886a2d5655036
parentbeeb107c5b354f4eaea17a9bca6ca8762f60effc
efivarfs: always register filesystem

The efivar ops are typically registered at subsys init time so that
they are available when efivarfs is registered at module init time.

Other efivars implementations, such as Google SMI, exist and can
currently be built as modules which means that efivar may not be
available when efivarfs is initialised.

Move the efivar availability check from module init to when the
filesystem is mounted to allow late registration of efivars.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
fs/efivarfs/super.c