]> err.no Git - linux-2.6/commit
[PATCH] md/bitmap: fix online removal of file-backed bitmaps
authorNeilBrown <neilb@suse.de>
Mon, 26 Jun 2006 07:27:43 +0000 (00:27 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:38 +0000 (09:58 -0700)
commitd7375ab324971e7acbea9f02a0269ae7348f4147
tree0a2e2f17a6ed37be1870b2bcc2b02cd6cf7e8cf2
parent52c03291a832d86c093996d0491a326de4a6b79b
[PATCH] md/bitmap: fix online removal of file-backed bitmaps

When "mdadm --grow /dev/mdX --bitmap=none" is used to remove a filebacked
bitmap, the bitmap was disconnected from the array, but the file wasn't closed
(until the array was stopped).

The file also wasn't closed if adding the bitmap file failed.

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/md.c