]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Cleanup clearing of BDI_pending bit in bdi_forker_thread()
authorJan Kara <jack@suse.cz>
Fri, 2 Sep 2011 23:04:09 +0000 (17:04 -0600)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 2 Sep 2011 23:17:02 +0000 (17:17 -0600)
commite0f875bc597faa27e55e62429e5754e0e933ef6a
treed7169fad55f66551fb8e8eb845cd1807bed25c47
parent87b55de1d2173cc33523dfe58060077503ee8d31
mm: Cleanup clearing of BDI_pending bit in bdi_forker_thread()

bdi_forker_thread() clears BDI_pending bit at the end of the main loop.
However clearing of this bit must not be done in some cases which is
handled by calling 'continue' from switch statement. That's kind of
unusual construct and without a good reason so change the function into
more intuitive code flow.

CC: Wu Fengguang <fengguang.wu@intel.com>
CC: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
mm/backing-dev.c