]> git.ipfire.org Git - thirdparty/linux.git/commit
cpuset: refactor out validate_partition
authorChen Ridong <chenridong@huawei.com>
Wed, 17 Sep 2025 06:04:50 +0000 (06:04 +0000)
committerTejun Heo <tj@kernel.org>
Wed, 17 Sep 2025 18:37:30 +0000 (08:37 -1000)
commit7e05981ba34a214fd43a2e4d776bc6b0c235e2fb
treee8ee117ff811e0abe24a31439c6439273feb0144
parent8daab66eb329ed2fe7e2922c3739dfa53dcf4694
cpuset: refactor out validate_partition

Refactor the validate_partition function to handle cpuset partition
validation when modifying cpuset.cpus. This refactoring also makes the
function reusable for handling cpuset.cpus.exclusive updates in subsequent
patches.

Signed-off-by: Chen Ridong <chenridong@huawei.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c