]> granicus.if.org Git - zfs/commit
Linux 4.14 compat: IO acct, global_page_state, etc (#6655)
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Sep 2017 21:24:34 +0000 (14:24 -0700)
committerTony Hutter <hutter2@llnl.gov>
Tue, 19 Sep 2017 21:24:34 +0000 (14:24 -0700)
commit661907e6bc3942aef5cee6098e3b743dcf03a372
tree9a9aca9a80554aa749628600393af4835cee52c5
parentd3e7d981d4cb1829926fa6c013de2d13305518f2
Linux 4.14 compat: IO acct, global_page_state, etc (#6655)

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

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
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