]> git.baikalelectronics.ru Git - kernel.git/commit
buffer_head: remove redundant test from wait_on_buffer
authorRichard Kennedy <richard@rsk.demon.co.uk>
Tue, 10 Aug 2010 00:18:42 +0000 (17:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Aug 2010 03:44:55 +0000 (20:44 -0700)
commitc86736d5d2c51ed44f7bc8a40996b1f3de946221
tree5ded18d250cc1b0c8c60aec55b249d4c4781ed6e
parent42d36c90ce328e89e3b0017f7563b2a1c232922a
buffer_head: remove redundant test from wait_on_buffer

The comment suggests that when b_count equals zero it is calling
__wait_no_buffer to trigger some debug, but as there is no debug in
__wait_on_buffer the whole thing is redundant.

AFAICT from the git log this has been the case for at least 5 years, so
it seems safe just to remove this.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/buffer_head.h