]> git.proxmox.com Git - mirror_zfs.git/commit - config/kernel.m4
Linux 3.14 compat: IO acct, global_page_state, etc
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Sat, 16 Sep 2017 18:00:19 +0000 (11:00 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 16 Sep 2017 18:00:19 +0000 (11:00 -0700)
commit787acae0b5cd139ea0f9fa60558cca28d4673b23
tree08561030aefd7cab9e4bf07abdcf23be83078ef5
parent90cdf2833d163dd4db31aded1e6940cc9edb67f6
Linux 3.14 compat: IO acct, global_page_state, etc

generic_start_io_acct/generic_end_io_acct in the master
branch of the linux kernel requires that the request_queue
be provided.

Move the logic from freemem in the spl to arc_free_memory
in arc.c. Do this so we can take advantage of global_page_state
interface checks in zfs.

Upstream kernel replaced struct block_device with
struct gendisk in struct bio. Determine if the
function bio_set_dev exists during configure
and have zfs use that if it exists.

bio_set_dev https://github.com/torvalds/linux/commit/74d4699
global_node_page_state https://github.com/torvalds/linux/commit/75ef718
io acct https://github.com/torvalds/linux/commit/d62e26b

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6635
config/kernel-bio_set_dev.m4 [new file with mode: 0644]
config/kernel-generic_io_acct.m4
config/kernel.m4
include/linux/blkdev_compat.h
module/zfs/arc.c
module/zfs/vdev_disk.c
module/zfs/zvol.c