]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: tidy up i_writecount handling in md/bitmap
authorNeil Brown <neilb@suse.de>
Sat, 11 Aug 2007 23:09:29 +0000 (01:09 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sat, 11 Aug 2007 23:09:29 +0000 (01:09 +0200)
commit287440c90e8bf967622072c0766d1c680d3c16ae
treea06bab32c42af78658e31a058da810ef114833a5
parentc6be40c9f51529d66e6b66910aa49693da795603
md/bitmap: tidy up i_writecount handling in md/bitmap

md/bitmap modifies i_writecount of a bitmap file to make sure that no-one else
writes to it.  The reverting of the change is sometimes done twice, and there
is one error path where it is omitted.

This patch tidies that up.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
drivers/md/bitmap.c
drivers/md/md.c