Page MenuHomeFreeBSD

subr_blist: end ffs backup
ClosedPublic

Authored by dougm on Jun 21 2023, 5:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 17, 3:11 AM
Unknown Object (File)
Mar 18 2024, 8:10 PM
Unknown Object (File)
Jan 8 2024, 3:05 AM
Unknown Object (File)
Dec 22 2023, 9:59 PM
Unknown Object (File)
Dec 11 2023, 2:40 AM
Unknown Object (File)
Oct 26 2023, 11:15 PM
Unknown Object (File)
Sep 23 2023, 10:34 PM
Unknown Object (File)
Sep 11 2023, 8:58 PM
Subscribers

Details

Summary

After D40698 is committed, there will no longer be any point to maintaining a binary search routine for ffs; inlines will always do it as well or better.

Diff Detail

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

Event Timeline

dougm requested review of this revision.Jun 21 2023, 5:52 PM
dougm created this revision.
mhorne added inline comments.
sys/kern/subr_blist.c
191–193

_Static_assert is to be preferred (see CTASSERT(9)). And why not ==?

This revision is now accepted and ready to land.Jun 21 2023, 8:31 PM
mhorne requested changes to this revision.Jun 21 2023, 8:31 PM

Wrong button :)

This revision now requires changes to proceed.Jun 21 2023, 8:31 PM
dougm marked an inline comment as done.

Switch CTASSERT to _Static_assert.

This revision is now accepted and ready to land.Jun 22 2023, 7:45 PM
sys/kern/subr_blist.c
191–193

I'll change to _Static_assert.

If somebody someday makes a change that makes u_daddr_t 32-bits on some architecture, should this assert fail for that architecture? fffsll will still work correctly.