]> granicus.if.org Git - zfs/commit
Add compatibility layer for {kmap,kunmap}_atomic
authorChunwei Chen <tuxoko@gmail.com>
Mon, 11 May 2015 14:22:56 +0000 (22:22 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 24 Aug 2015 17:13:25 +0000 (10:13 -0700)
commit17888ae30d6111f1fe25087a256724ee9b1a0a84
tree7567dc20bcdd9045a3fac1761b1ac90626fdfeba
parentefc412b645cbb209e42983a9dcb9d3c9427c5495
Add compatibility layer for {kmap,kunmap}_atomic

Starting from linux-2.6.37, {kmap,kunmap}_atomic takes 1 argument instead of 2.
We use zfs_{kmap,kunmap}_atomic as wrappers and always take 2 argument, but
ignore the 2nd for newer kernel.

Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
config/kernel-kmap-atomic-args.m4 [new file with mode: 0644]
config/kernel.m4
include/linux/Makefile.am
include/linux/kmap_compat.h [new file with mode: 0644]