aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/execmem.h
diff options
context:
space:
mode:
authorZheng Yejian <zhengyejian@huaweicloud.com>2024-10-22 16:39:27 +0800
committerAndrew Morton <akpm@linux-foundation.org>2024-11-06 20:11:18 -0800
commit477327e10639a1ec5698847030b494dc75de33e4 (patch)
tree4c29aecabb746429412e447b634654c78c955603 /include/linux/execmem.h
parentmm/damon/vaddr: fix issue in damon_va_evenly_split_region() (diff)
downloadwireguard-linux-477327e10639a1ec5698847030b494dc75de33e4.tar.xz
wireguard-linux-477327e10639a1ec5698847030b494dc75de33e4.zip
mm/damon/vaddr: add 'nr_piece == 1' check in damon_va_evenly_split_region()
As discussed in [1], damon_va_evenly_split_region() is called to size-evenly split a region into 'nr_pieces' small regions, when nr_pieces == 1, no actual split is required. Check that case for better code readability and add a simple kunit testcase. [1] https://lore.kernel.org/all/20241021163316.12443-1-sj@kernel.org/ Link: https://lkml.kernel.org/r/20241022083927.3592237-3-zhengyejian@huaweicloud.com Signed-off-by: Zheng Yejian <zhengyejian@huaweicloud.com> Reviewed-by: SeongJae Park <sj@kernel.org> Cc: Fernand Sieber <sieberf@amazon.com> Cc: Leonard Foerster <foersleo@amazon.de> Cc: Shakeel Butt <shakeel.butt@linux.dev> Cc: Ye Weihua <yeweihua4@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/execmem.h')
0 files changed, 0 insertions, 0 deletions