mm/lib: split write_cpusets()

There is a cpuset test needs to write to cpuset mems and cpus, this
patch split write_cpusets() into 3, so that the test can use it and
avoid redundant codes.

Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
2 files changed