]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_vfsops.c
Linux 4.0 compat: bdi_setup_and_register()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 28 Feb 2015 00:09:52 +0000 (16:09 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Mar 2015 18:49:45 +0000 (10:49 -0800)
commit8c45def24a5c640a3b44ce38cc3482b9c89a3b1d
treea88901f913e55303e45c3bb491ee004ce2a336de
parent4ec15b8dcf8038aeb15c7877c50d0fa500b468c6
Linux 4.0 compat: bdi_setup_and_register()

The 'capabilities' argument which was passed to bdi_setup_and_register()
has been removed.  File systems should no longer pass BDI_CAP_MAP_COPY.
For our purposes this means there are now three different interfaces
which must be handled.  A zpl_bdi_setup_and_register() wrapper function
has been introduced to provide a single interface to the ZPL code.

* 2.6.32 - 2.6.33, bdi_setup_and_register() is not exported.
* 2.6.34 - 3.19, bdi_setup_and_register() takes 3 arguments.
* 4.0 - x.y, bdi_setup_and_register() takes 2 arguments.

I've also taken this opportunity to remove HAVE_BDI because kernels
older then 2.6.32 are no longer supported.  All kernels newer than
this will have one of the above interfaces.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Closes #3128
config/kernel-bdi-setup-and-register.m4
config/kernel-bdi.m4 [deleted file]
config/kernel.m4
include/linux/vfs_compat.h
module/zfs/zfs_vfsops.c