]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29f0122049a563ff665453c06918af85c7f9ba8f
tree38ceee9851536b3f5969d642afb9614fba826f8e
parentb6396fcd639758d3bcbd832fe1f19245837b89cc
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