prune_dcache

Name

prune_dcache --  shrink the dcache

Synopsis

void prune_dcache (int count);

Arguments

count

number of entries to try and free

Description

Shrink the dcache. This is done when we need more memory, or simply when we need to unmount something (at which point we need to unuse all dentries).

This function may fail to free any resources if all the dentries are in use.