md: stop using csum_partial for checksum calculation in md
commit4d167f09375bd6c18447d3fcc18baaf3acd15fbc
authorNeilBrown <neilb@suse.de>
Wed, 9 May 2007 09:35:37 +0000 (9 02:35 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:57 +0000 (9 12:30 -0700)
tree4132b4061678bf6124c3045035c023e83aebe825
parente11e93facc38fb264a5ff1e154ebb2f11dc5cffa
md: stop using csum_partial for checksum calculation in md

If CONFIG_NET is not selected, csum_partial is not exported, so md.ko cannot
use it.  We shouldn't really be using csum_partial anyway as it is an
internal-to-networking interface.

So replace it with C code to do the same thing.  Speed is not crucial here, so
something simple and correct is best.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c