]> git.baikalelectronics.ru Git - kernel.git/commit
md: stop using csum_partial for checksum calculation in md
authorNeilBrown <neilb@suse.de>
Wed, 9 May 2007 09:35:37 +0000 (02:35 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:57 +0000 (12:30 -0700)
commit998acfc71351d1c06834ad36b8b5870814538c25
tree4132b4061678bf6124c3045035c023e83aebe825
parentd37b73813540fd5cc552b44bbeb11b1fa4e47e79
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