From d10b757886cc63e5f5f5b6e798a20e339d5937bb Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Thu, 6 Jun 2019 15:11:36 +0000 Subject: [PATCH] [skip ci] Better comments for vlrureclaim Sponsored by: The FreeBSD Foundation --- sys/kern/vfs_subr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index cea2455a876c..f5fc9e3564cc 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -858,6 +858,12 @@ vattr_null(struct vattr *vap) * desirable to reuse such vnodes. These conditions may cause the * number of vnodes to reach some minimum value regardless of what * you set kern.maxvnodes to. Do not set kern.maxvnodes too low. + * + * @param mp Try to reclaim vnodes from this mountpoint + * @param reclaim_nc_src Only reclaim directories with outgoing namecache + * entries if this argument is strue + * @param reclaim_free Only reclaim free vnodes if this is set. + * @return The number of vnodes that were reclaimed. */ static int vlrureclaim(struct mount *mp, int reclaim_nc_src, int trigger)