]> git.baikalelectronics.ru Git - kernel.git/commit
fault-injection: add min-order parameter to fail_page_alloc
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 16 Jul 2007 06:40:23 +0000 (23:40 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:45 +0000 (09:05 -0700)
commit1e4cf3e78a504e5889476d8fd4ce89fb43d8b44e
treeb0b0c2b5c3cf1c0daa7c6db7911c42dcf912f181
parent1186a3d6d9262023ff6f235a15e4fd1eac1711a2
fault-injection: add min-order parameter to fail_page_alloc

Limiting smaller allocation failures by fault injection helps to find real
possible bugs.  Because higher order allocations are likely to fail and
zero-order allocations are not likely to fail.

This patch adds min-order parameter to fail_page_alloc.  It specifies the
minimum page allocation order to be injected failures.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/fault-injection/fault-injection.txt
mm/page_alloc.c