md/bitmap: remove unnecessary page reference manipulations from md/bitmap code
commitb852d1f6463c5a9bf25ac324eac32e9cb1a2eaf7
authorNeil Brown <neilb@suse.de>
Sat, 11 Aug 2007 23:05:36 +0000 (12 01:05 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sat, 11 Aug 2007 23:05:36 +0000 (12 01:05 +0200)
treed19e33a3158293e09186bc73f0875f90d605e309
parent6964d1bb2773643018889c8518f95f279d93737b
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: Adrian Bunk <bunk@kernel.org>
drivers/md/bitmap.c