Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/smc: remove unused input parameters in smc_buf_get_slot

The input parameter "compressed_bufsize" of smc_buf_get_slot is unused,
remove it.

Signed-off-by: Wang Liang <wangliang74@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250618103342.1423913-1-wangliang74@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Wang Liang and committed by
Jakub Kicinski
c3ee72de f64bd204

+2 -3
+2 -3
net/smc/smc_core.c
··· 2100 2100 /* try to reuse a sndbuf or rmb description slot for a certain 2101 2101 * buffer size; if not available, return NULL 2102 2102 */ 2103 - static struct smc_buf_desc *smc_buf_get_slot(int compressed_bufsize, 2104 - struct rw_semaphore *lock, 2103 + static struct smc_buf_desc *smc_buf_get_slot(struct rw_semaphore *lock, 2105 2104 struct list_head *buf_list) 2106 2105 { 2107 2106 struct smc_buf_desc *buf_slot; ··· 2441 2442 bufsize = smc_uncompress_bufsize(bufsize_comp); 2442 2443 2443 2444 /* check for reusable slot in the link group */ 2444 - buf_desc = smc_buf_get_slot(bufsize_comp, lock, buf_list); 2445 + buf_desc = smc_buf_get_slot(lock, buf_list); 2445 2446 if (buf_desc) { 2446 2447 buf_desc->is_dma_need_sync = 0; 2447 2448 SMC_STAT_RMB_SIZE(smc, is_smcd, is_rmb, true, bufsize);