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)
Thu, Mar 26, 6:50 AM
Unknown Object (File)
Sat, Mar 21, 1:20 PM
Unknown Object (File)
Sat, Mar 21, 8:34 AM
Unknown Object (File)
Thu, Mar 19, 3:07 AM
Unknown Object (File)
Tue, Mar 17, 6:10 PM
Unknown Object (File)
Tue, Mar 17, 8:11 AM
Unknown Object (File)
Sun, Mar 15, 10:17 AM
Unknown Object (File)
Mar 4 2026, 7:16 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