fail_make_request: cleanup should_fail_request
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 26 Jul 2011 23:09:03 +0000 (16:09 -0700)
committer黄涛 <huangtao@rock-chips.com>
Mon, 18 Mar 2013 09:00:09 +0000 (17:00 +0800)
commit4a8913795aad08b8a2b3e770f2683f83c0697465
tree2342e4fe5730d04cde1a9b8b575cc6a89e38f4cb
parent940efe7e52483362ab545f0ee619d2c691ba892b
fail_make_request: cleanup should_fail_request

This changes should_fail_request() to more usable wrapper function of
should_fail().  It can avoid putting #ifdef CONFIG_FAIL_MAKE_REQUEST in
the middle of a function.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
block/blk-core.c