aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/link_elf_obj.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-01-03 22:29:58 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-01-03 22:29:58 +0000
commitb249ce48ea5560afdcff57e72a9880b7d3132434 (patch)
treeaf24958629e49de8db56734a7389a612627230d5 /sys/kern/link_elf_obj.c
parent4a20fe31c373d6a6c81bd6205d210bd893dc8068 (diff)
downloadsrc-b249ce48ea5560afdcff57e72a9880b7d3132434.tar.gz
src-b249ce48ea5560afdcff57e72a9880b7d3132434.zip
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
Notes
Notes: svn path=/head/; revision=356337
Diffstat (limited to 'sys/kern/link_elf_obj.c')
-rw-r--r--sys/kern/link_elf_obj.c4
1 files changed, 2 insertions, 2 deletions
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)