]> git.ipfire.org Git - thirdparty/linux.git/commit
efivarfs: make variable_is_present use dcache lookup
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 7 Jan 2025 02:35:22 +0000 (18:35 -0800)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 9 Jan 2025 14:29:08 +0000 (15:29 +0100)
commit7e365c7e2cc587ac90c346a52156a6b08845d909
tree401e112608f5fa300072d9ebc1474ded10aefe7a
parent1aba87f92d471222a89a5e7c27497489d37c67e1
efivarfs: make variable_is_present use dcache lookup

Instead of searching the variable entry list for a variable, use the
dcache lookup functions to find it instead.  Also add an efivarfs_
prefix to the function now it is no longer static.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
fs/efivarfs/internal.h
fs/efivarfs/super.c
fs/efivarfs/vars.c