]> err.no Git - linux-2.6/commit
[PATCH] md/bitmap: remove unnecessary page reference manipulations from md/bitmap...
authorNeilBrown <neilb@suse.de>
Mon, 26 Jun 2006 07:27:46 +0000 (00:27 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:38 +0000 (09:58 -0700)
commita647e4bc5ce697e25ff50d2e22de68a581b1ed38
tree465559f3786e7b5b10bf1ff58a63e198c95c8879
parente16b68b6e456a61b895a198baf5aa473cf2a32bf
[PATCH] md/bitmap: remove unnecessary page reference manipulations from md/bitmap code

md/bitmap gets a collection of pages representing the bitmap when it
initialises the bitmap, and puts all the references when discarding the
bitmap.

It also occasionally takes extra references without any good reason, and
sometimes drops them ...  though it doesn't always drop them, which can result
in a memory leak.

This patch removes the unnecessary 'get_page' calls, and the corresponding
'put_page' calls.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/bitmap.c