diff options
| author | Hiroshi Nishida <nishidafmly@gmail.com> | 2026-07-10 06:23:29 -0700 |
|---|---|---|
| committer | Yu Kuai <yukuai@fygo.io> | 2026-07-31 03:43:17 +0800 |
| commit | 6bc3deb600ee8c234204c6f4ea703ee04a11de2f (patch) | |
| tree | 8f12ae01cea2447af040adf679904ef3ff670d80 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | addb977450a662e1961d272b6ebfcb477d115044 (diff) | |
md: widen badblock sectors param from int to sector_t
The badblocks core API -- badblocks_set(), badblocks_clear() and
badblocks_check() -- and the is_badblock() helper all take the range
length as sector_t. The md wrappers rdev_set_badblocks(),
rdev_clear_badblocks() and rdev_has_badblock(), however, declared the
same length as int, narrowing sector_t to int and back again in the
middle of an otherwise 64-bit clean path.
Change the sectors parameter to sector_t in these three wrappers so it
matches the core API and is_badblock(). No functional change: current
callers pass per-I/O or per-resync-chunk lengths well within int range.
This just removes a gratuitous truncation point and keeps the type
consistent end to end.
Signed-off-by: Hiroshi Nishida <nishidafmly@gmail.com>
Link: https://patch.msgid.link/20260710132329.7273-3-nishidafmly@gmail.com
Signed-off-by: Yu Kuai <yukuai@fygo.io>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
