]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/bio-integrity.c: remove duplicated code
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Tue, 5 Nov 2013 05:55:16 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:16 +0000 (16:55 +1100)
commit6952c5b3b2b715212bec8420672b8d9cfcf2554f
treead4e60987da4ad9c5a1028ccf397c2e20706e009
parentf43306ca171f8637c5fe99135b0fcdad20eec22a
fs/bio-integrity.c: remove duplicated code

Most code of function bio_integrity_verify and bio_integrity_generate is
the same, so introduce a common function bio_integrity_generate_verify()
to remove the reduplicate code.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/bio-integrity.c