summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2026-04-23 11:30:57 +0800
committerJens Axboe <axboe@kernel.dk>2026-04-23 04:52:47 -0600
commitea1db795de5fe9ea6844f3152483c4d3a02c0480 (patch)
tree7cae39902d04a5d6664db87675be6be3ae1eb8a2 /include/linux/debugobjects.h
parent47903faa5c6f814f1e79b5d03708e05ca7975f6b (diff)
ublk: refactor common helper ublk_shmem_remove_ranges()
Extract the shared walk+erase+unpin+kfree loop into ublk_shmem_remove_ranges(). When buf_index >= 0, only ranges matching that index are removed; when buf_index < 0, all ranges are removed. Also extract ublk_unpin_range_pages() to share the page unpinning loop. Convert both __ublk_ctrl_unreg_buf() and ublk_buf_cleanup() to use the new helper. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Link: https://patch.msgid.link/20260423033058.2805135-3-tom.leiming@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions