]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
md/bitmap: fix online removal of file-backed bitmaps
authorNeil Brown <neilb@suse.de>
Sat, 11 Aug 2007 22:18:08 +0000 (00:18 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sat, 11 Aug 2007 22:18:08 +0000 (00:18 +0200)
commitddd0593c7408afa9dcc29db6a80669761107ee3c
tree0ad2f9bae87f83d5a6e7e44e06b326b3b98da1a7
parent1da6843b983e8bebefa78f15e433320c56c27477
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: Adrian Bunk <bunk@kernel.org>
drivers/md/md.c