Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit b852d1f6 authored by Neil Brown's avatar Neil Brown Committed by Adrian Bunk
Browse files

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: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
parent 6964d1bb
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment