Btrfs: integrate integrity check module into btrfs
commit21adbd5cbb5344a3fca6bb7ddb2ab6cb03c44546
authorStefan Behrens <sbehrens@giantdisaster.de>
Wed, 9 Nov 2011 12:44:05 +0000 (9 13:44 +0100)
committerStefan Behrens <sbehrens@giantdisaster.de>
Wed, 21 Dec 2011 18:14:17 +0000 (21 19:14 +0100)
tree208c3ab6ad8bb35937b21c4d54e45e46d99557ff
parentf11e4d7f533249ddfa110116200c5c3a509f9218
Btrfs: integrate integrity check module into btrfs

This is the last part of the patch series. It modifies the btrfs
code to use the integrity check module if configured to do so
with the define BTRFS_FS_CHECK_INTEGRITY. If this define is not set,
the only effective change is that code is added that handles the
mount option to activate the integrity check. If the mount option is
set and the define BTRFS_FS_CHECK_INTEGRITY is not set, that code
complains in the log and the mount fails with EINVAL.

Add the mount option to activate the usage of the integrity check
code.
Add invocation of btrfs integrity check code init and cleanup
function on mount and umount, respectively.
Add hook to call btrfs integrity check code version of
submit_bh/submit_bio.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/scrub.c
fs/btrfs/super.c
fs/btrfs/volumes.c