Page MenuHomeFreeBSD

Use the presence of a susp_clean method to test for suspendability.
ClosedPublic

Authored by markj on Jun 29 2015, 2:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 28 2024, 10:50 AM
Unknown Object (File)
Feb 28 2024, 9:02 AM
Unknown Object (File)
Dec 20 2023, 1:31 AM
Unknown Object (File)
Sep 2 2023, 1:24 PM
Unknown Object (File)
Aug 31 2023, 7:38 PM
Unknown Object (File)
Aug 31 2023, 7:38 PM
Unknown Object (File)
Aug 31 2023, 7:36 PM
Unknown Object (File)
Aug 31 2023, 7:24 PM
Subscribers
None

Details

Summary

This change removes the MNTK_SUSPENDABLE flag and instead tests the mount
point returned by VOP_GETWRITEMOUNT. This removes the need for
passthrough filesystems like nullfs and unionfs to inherit mount flags
from lower layers.

Test Plan

Verified that vn_start_write_locked() was or was not being called under the same conditions as before, using ufs, tmpfs, nullfs on tmpfs, and devfs.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj retitled this revision from to Use the presence of a susp_clean method to test for suspendability..
markj edited the test plan for this revision. (Show Details)
markj updated this object.
markj added reviewers: kib, mjg.
mjg edited edge metadata.

I would possibly rename vn_suspendable_mp to vn_suspendable, but looks good enough to me as it is.

This revision is now accepted and ready to land.Jun 29 2015, 3:49 AM
kib edited edge metadata.
kib added inline comments.
sys/fs/nullfs/null_vfsops.c
202 โ†—(On Diff #6531)

This is weird reformatting.

In D2937#57266, @mjg wrote:

I would possibly rename vn_suspendable_mp to vn_suspendable, but looks good enough to me as it is.

I'll fix that in the commit, thanks.

sys/fs/nullfs/null_vfsops.c
202 โ†—(On Diff #6531)

It's a bit easier to read when the RHS is on a single line, but I agree that it looks weird. I'll fix it before committing.

This revision was automatically updated to reflect the committed changes.