proc/stat: use defined macro KMALLOC_MAX_SIZE
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Thu, 26 May 2011 23:25:51 +0000 (16:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2011 00:12:37 +0000 (17:12 -0700)
commita4dbf0ec2aa3e8aca6e63f598095750c232d50f1
tree38ceee9851536b3f5969d642afb9614fba826f8e
parente130aa70f438855b4a0e13a5249951da001798d4
proc/stat: use defined macro KMALLOC_MAX_SIZE

There is a macro for the max size kmalloc can allocate, so use it instead
of a hardcoded number.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/stat.c