diff options
author | Youling Tang <tangyouling@kylinos.cn> | 2025-06-05 10:06:38 +0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-07-01 00:06:58 -0400 |
commit | 9f8e7546673859ff9415bc2556a90e521e8d014a (patch) | |
tree | 5e2b34cc6ded0b383426a403aee7b3afa1f67968 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | a528f41b4c73d54395ce090562103e188b876d74 (diff) |
bcachefs: Simplify bch2_bio_map()
For the part of directly mapping the kernel virtual address, there is no
need to increase to bio page-by-page. It can be directly replaced by
bio_add_virt_nofail().
For the address part of the vmalloc region, its physical address is
discontinuous and needs to be increased page-by-page to bio. The helper
function bio_add_vmalloc() can be used to simplify the implementation of
bch2_bio_map().
Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions