diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-03 22:29:58 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-03 22:29:58 +0000 |
commit | b249ce48ea5560afdcff57e72a9880b7d3132434 (patch) | |
tree | af24958629e49de8db56734a7389a612627230d5 /sys/kern/kern_jail.c | |
parent | 4a20fe31c373d6a6c81bd6205d210bd893dc8068 (diff) | |
download | src-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/kern_jail.c')
-rw-r--r-- | sys/kern/kern_jail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index b0a9b436c85a..146cf5a4ae17 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -939,7 +939,7 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags) vput(root); goto done_free; } - VOP_UNLOCK(root, 0); + VOP_UNLOCK(root); if (fullpath_disabled) { /* Leave room for a real-root full pathname. */ if (len + (path[0] == '/' && strcmp(mypr->pr_path, "/") @@ -2393,7 +2393,7 @@ do_jail_attach(struct thread *td, struct prison *pr) if ((error = mac_vnode_check_chroot(td->td_ucred, pr->pr_root))) goto e_unlock; #endif - VOP_UNLOCK(pr->pr_root, 0); + VOP_UNLOCK(pr->pr_root); if ((error = pwd_chroot(td, pr->pr_root))) goto e_revert_osd; @@ -2417,7 +2417,7 @@ do_jail_attach(struct thread *td, struct prison *pr) return (0); e_unlock: - VOP_UNLOCK(pr->pr_root, 0); + VOP_UNLOCK(pr->pr_root); e_revert_osd: /* Tell modules this thread is still in its old jail after all. */ (void)osd_jail_call(td->td_ucred->cr_prison, PR_METHOD_ATTACH, td); |