]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix calculation for size of filemap_attr array in md/bitmap.
authorNeil Brown <neilb@suse.de>
Wed, 11 Apr 2007 03:31:07 +0000 (13:31 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Apr 2007 20:47:03 +0000 (13:47 -0700)
commit2d6a42397823d5de05303941ad3df8a11e06a11a
treecf2c41e513564f0c74b65b455b3b19757601b563
parent2031c51916f2fd44222715c8b1ba23d5f8ef56f9
Fix calculation for size of filemap_attr array in md/bitmap.

If 'num_pages' were ever 1 more than a multiple of 8 (32bit platforms)
for of 16 (64 bit platforms). filemap_attr would be allocated one
'unsigned long' shorter than required.  We need a round-up in there.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/bitmap.c