]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] md: Don't write more than is required of the last page of a bitmap
authorNeilBrown <neilb@suse.de>
Mon, 21 May 2007 01:33:10 +0000 (11:33 +1000)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Aug 2007 08:02:21 +0000 (10:02 +0200)
commitc39cf5329632f239bbf8fd2b2d32bd4e3cb405a9
tree996112e7af0bafe486f0991e95a646bfaa8eb589
parentcb9072a6c6322f4615576537b024a42252b7ac15
[PATCH] md: Don't write more than is required of the last page of a bitmap

It is possible that real data or metadata follows the bitmap
without full page alignment.
So limit the last write to be only the required number of bytes,
rounded up to the hard sector size of the device.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/bitmap.c
include/linux/raid/bitmap.h