From b249ce48ea5560afdcff57e72a9880b7d3132434 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Fri, 3 Jan 2020 22:29:58 +0000 Subject: vfs: drop the mostly unused flags argument from VOP_UNLOCK Filesystems which want to use it in limited capacity can employ the VOP_UNLOCK_FLAGS macro. Reviewed by: kib (previous version) Differential Revision: https://reviews.freebsd.org/D21427 --- sys/kern/link_elf_obj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/link_elf_obj.c') diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c index df5aaacc5253..53f85ce3a5e1 100644 --- a/sys/kern/link_elf_obj.c +++ b/sys/kern/link_elf_obj.c @@ -1135,7 +1135,7 @@ link_elf_load_file(linker_class_t cls, const char *filename, goto out; /* Pull in dependencies */ - VOP_UNLOCK(nd->ni_vp, 0); + VOP_UNLOCK(nd->ni_vp); error = linker_load_dependencies(lf); vn_lock(nd->ni_vp, LK_EXCLUSIVE | LK_RETRY); if (error) @@ -1163,7 +1163,7 @@ link_elf_load_file(linker_class_t cls, const char *filename, *result = lf; out: - VOP_UNLOCK(nd->ni_vp, 0); + VOP_UNLOCK(nd->ni_vp); vn_close(nd->ni_vp, FREAD, td->td_ucred, td); free(nd, M_TEMP); if (error && lf) -- cgit v1.2.3