Page MenuHomeFreeBSD

msdos: Use getblk rather than bread to write out FAT copy
AbandonedPublic

Authored by imp on Mar 13 2023, 5:11 PM.
Tags
None
Referenced Files
F102521652: D39060.id.diff
Wed, Nov 13, 1:00 PM
Unknown Object (File)
Sep 27 2024, 5:04 PM
Unknown Object (File)
Sep 27 2024, 1:31 AM
Unknown Object (File)
Sep 23 2024, 11:49 AM
Unknown Object (File)
Sep 18 2024, 1:51 AM
Unknown Object (File)
Sep 9 2024, 4:07 AM
Unknown Object (File)
Sep 7 2024, 8:27 AM
Unknown Object (File)
Sep 5 2024, 5:40 PM
Subscribers

Details

Reviewers
markj
Summary

We don't need to read the old contents of the backup FAT before updating
it with the new, so use getblk rather than bread to get the m_buf to to
the write.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 50326
Build 47218: arc lint + arc unit

Event Timeline

imp requested review of this revision.Mar 13 2023, 5:11 PM
imp created this revision.

This change took us from 32s down to only 25s though...

do we always overwrite the whole block?

do we always overwrite the whole block?

Hmmm, we did in my testing, but I see the code that blsize != cpsize, so I'm just going to drop thia.

I guess you could make it bread or getblk depending on cpsize?