diff options
author | Chengchang Tang <[email protected]> | 2024-01-13 16:59:31 +0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2024-01-25 11:54:38 +0200 |
commit | 4f5731b1fb2246719513dfb918bf71b6818aa5f5 (patch) | |
tree | b139092e9d1de800fd2824fc9f40002dc4646843 /net/lapb/lapb_subr.c | |
parent | a4ca341080758d847db155b97887bff6f84016a4 (diff) |
RDMA/hns: Refactor mtr_init_buf_cfg()
page_shift and page_cnt is only used in mtr_map_bufs(). And these
parameter could be calculated indepedently.
Strip the computation of page_shift and page_cnt from mtr_init_buf_cfg(),
reducing the number of parameters of it. This helps reducing coupling
between mtr_init_buf_cfg() and mtr_map_bufs().
Signed-off-by: Chengchang Tang <[email protected]>
Signed-off-by: Junxian Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions