svn commit: r366071 - in head/sys: contrib/openzfs/module/os/freebsd/zfs kern sys

Mateusz Guzik mjguzik at gmail.com
Wed Sep 23 16:57:10 UTC 2020


On 9/23/20, Konstantin Belousov <kostikbel at gmail.com> wrote:
> On Wed, Sep 23, 2020 at 10:46:07AM +0000, Mateusz Guzik wrote:
>> Author: mjg
>> Date: Wed Sep 23 10:46:07 2020
>> New Revision: 366071
>> URL: https://svnweb.freebsd.org/changeset/base/366071
>>
>> Log:
>>   cache: drop the force flag from purgevfs
>>
>>   The optional scan is wasteful, thus it is removed altogether from
>> unmount.
>>
>>   Callers which always want it anyway remain unaffected.
>>
> Is there any checker for debugging kernels, that no cache entries are
> left after unmount ?
>

It is provided indirectly. It is asserted no vnodes are associated
with the mount point by the end of unmount, dooming purges entries
from the namecache and it is an invariant that doomed vnodes don't
gain new entries.

-- 
Mateusz Guzik <mjguzik gmail.com>


More information about the svn-src-all mailing list