]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: centralise allocation of bitmap file pages.
authorNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:53 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:53 +0000 (10:57 +1000)
commit48c38ebb209f4f6535d4ac23610a50c80d112bec
tree49d70c58528c2c59b690014fa2abae65e405e281
parent0aa192f7c6b7388fa659ea30933d59bc74ba3fb8
md/bitmap: centralise allocation of bitmap file pages.

Instead of allocating pages in read_sb_page, read_page and
bitmap_read_sb, allocate them all in bitmap_init_from disk.

Also replace the hack of calling "attach_page_buffers(page, NULL)" to
ensure that free_buffer() won't complain, by putting a test for
PagePrivate in free_buffer().

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c