]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cpuset: use seq_*mask_* to print masks
authorLai Jiangshan <laijs@cn.fujitsu.com>
Sun, 19 Oct 2008 03:28:20 +0000 (20:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:52:39 +0000 (08:52 -0700)
commit30e8e13603c247c301fdacabef2a765c84840994
tree753425750bb70f84ae621fa8f0624781557887cb
parent3eda20118000941e7e8994fc5fac8706d8c10f00
cpuset: use seq_*mask_* to print masks

1) seq_file excepts that m->count == m->size when it's buf is full,
   so current code will causes bugs when buf is overflow.

2) There is not too good that cpuset accesses struct seq_file's
   fields directly.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Paul Menage <menage@google.com>
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cpuset.c