Simplify BDI integration
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Nov 2011 00:39:03 +0000 (16:39 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Nov 2011 18:19:03 +0000 (10:19 -0800)
Update the code to use the bdi_setup_and_register() helper to
simplify the bdi integration code.  The updated code now just
registers the bdi during mount and destroys it during unmount.

The only complication is that for 2.6.32 - 2.6.33 kernels the
helper wasn't available so in these cases the zfs code must
provide it.  Luckily the bdi_setup_and_register() function
is trivial.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #367


No differences found