commit | ff92e94ed6c32835e522eaed574129ef5f11edf3 | [log] [tgz] |
---|---|---|
author | Caspar Zhang <caspar@casparzhang.com> | Wed Feb 29 10:58:15 2012 +0800 |
committer | Caspar Zhang <caspar@casparzhang.com> | Wed Feb 29 11:26:26 2012 +0800 |
tree | b5757e6ee173303a4fe37382bccc9400ef6f7646 | |
parent | 518b1b319c12b47a31882315437a12d31f9ba01a [diff] |
mm/lib: use different read/write function for cpuset cpuset files may have different filenames like: /dev/cpuset/cpus /dev/cpuset/cpuset.cpus Which causes read from and write to cpuset files more difficult. I have to add two new functions to avoid more duplicated codes. And write_cpuset_mems and write_cpuset_cpus can be replaced by the new functions. Signed-off-by: Caspar Zhang <caspar@casparzhang.com>