mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Better comments for vlrureclaim
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2240d8c465
commit
e7d8ebc8ca
1 changed files with 10 additions and 2 deletions
|
|
@ -947,9 +947,16 @@ 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 trigger Only reclaim vnodes with fewer than this many resident
|
||||
* pages.
|
||||
* @return The number of vnodes that were reclaimed.
|
||||
*/
|
||||
static int
|
||||
vlrureclaim(struct mount *mp, int reclaim_nc_src, int trigger)
|
||||
vlrureclaim(struct mount *mp, bool reclaim_nc_src, int trigger)
|
||||
{
|
||||
struct vnode *vp;
|
||||
int count, done, target;
|
||||
|
|
@ -1238,7 +1245,8 @@ vnlru_proc(void)
|
|||
{
|
||||
struct mount *mp, *nmp;
|
||||
unsigned long onumvnodes;
|
||||
int done, force, reclaim_nc_src, trigger, usevnodes;
|
||||
int done, force, trigger, usevnodes;
|
||||
bool reclaim_nc_src;
|
||||
|
||||
EVENTHANDLER_REGISTER(shutdown_pre_sync, kproc_shutdown, vnlruproc,
|
||||
SHUTDOWN_PRI_FIRST);
|
||||
|
|
|
|||
Loading…
Reference in a new issue