Page MenuHomeFreeBSD

ffs_use_bwrite: make the superblock snapshot more consistent
ClosedPublic

Authored by kib on May 8 2022, 2:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 4, 2:22 AM
Unknown Object (File)
Tue, Aug 4, 1:57 AM
Unknown Object (File)
Mon, Aug 3, 9:05 AM
Unknown Object (File)
Sun, Aug 2, 5:28 AM
Unknown Object (File)
Thu, Jul 30, 12:38 PM
Unknown Object (File)
Tue, Jul 21, 10:53 AM
Unknown Object (File)
Tue, Jul 21, 6:07 AM
Unknown Object (File)
Jun 29 2026, 2:14 PM
Subscribers

Details

Summary
Copy in-memory struct fs to the superblock buffer under the UFS mutex.

Clear fs_fmod once more, in the buffer data copy.
This is needed for in-kernel copy of the code, where allocation might
happen after fs_fmod is cleared in ffs_sbput() but before the write.

Reported by:    markj
PR:     263765

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable