aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/slab.py
diff options
context:
space:
mode:
authorColy Li <[email protected]>2023-08-12 01:05:07 +0800
committerJens Axboe <[email protected]>2023-09-26 00:44:33 -0600
commite850d9a52f4cd31521c80a7ea9718b69129af4d5 (patch)
treec878270558ea1bb56adfb22b77eeae13ca717166 /scripts/gdb/linux/slab.py
parentd78bfa1346ab1fe04d20aa45a0678d1fc866f37c (diff)
badblocks: add more helper structure and routines in badblocks.h
This patch adds the following helper structure and routines into badblocks.h, - struct badblocks_context This structure is used in improved badblocks code for bad table iteration. - BB_END() The macro to calculate end LBA of a bad range record from bad table. - badblocks_full() and badblocks_empty() The inline routines to check whether bad table is full or empty. - set_changed() and clear_changed() The inline routines to set and clear 'changed' tag from struct badblocks. These new helper structure and routines can help to make the code more clear, they will be used in the improved badblocks code in following patches. Signed-off-by: Coly Li <[email protected]> Reviewed-by: Xiao Ni <[email protected]> Cc: Dan Williams <[email protected]> Cc: Geliang Tang <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Jens Axboe <[email protected]> Cc: NeilBrown <[email protected]> Cc: Vishal L Verma <[email protected]> Acked-by: Geliang Tang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/slab.py')
0 files changed, 0 insertions, 0 deletions