Drivers: hv: vmbus: Remove the numa_node field from the vmbus_channel struct
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Wed, 17 Jun 2020 16:46:36 +0000 (18:46 +0200)
committerWei Liu <wei.liu@kernel.org>
Fri, 19 Jun 2020 15:38:15 +0000 (15:38 +0000)
commit458d090fbad59d1f849ee15e78d0471784d428b6
tree186a8ead7ce1ce2554b084d841afd0bc1aefb549
parent5bf74682118b3003c8f9b0b0ec596e473fc6eb82
Drivers: hv: vmbus: Remove the numa_node field from the vmbus_channel struct

The field is read only in numa_node_show() and it is already stored twice
(after a call to cpu_to_node()) in target_cpu_store() and init_vp_index();
there is no need to "cache" its value in the channel data structure.

Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20200617164642.37393-3-parri.andrea@gmail.com
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/channel_mgmt.c
drivers/hv/vmbus_drv.c
include/linux/hyperv.h