fs/bio-integrity: remove duplicate code
commitbf36f9cfa6d3d129387b9d62f495d978ed4ade7c
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Fri, 21 Feb 2014 10:10:59 +0000 (21 18:10 +0800)
committerJens Axboe <axboe@fb.com>
Fri, 21 Feb 2014 23:28:30 +0000 (21 15:28 -0800)
treee50b3eefcc3d908d033e6ae6d4e432e01ee430e7
parentec6c676a08b0779a32c9cec9fae7532add32fe15
fs/bio-integrity: remove duplicate code

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

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/bio-integrity.c