zfs/include/linux
Chunwei Chen fdbc1ba99d Linux 4.7 compat: inode_lock() and friends
Linux 4.7 changes i_mutex to i_rwsem, and we should used inode_lock and
inode_lock_shared to do exclusive and shared lock respectively.

We use spl_inode_lock{,_shared}() to hide the difference. Note that on older
kernel you'll always take an exclusive lock.

We also add all other inode_lock friends. And nested users now should
explicitly call spl_inode_lock_nested with correct subclass.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue zfsonlinux/zfs#4665
Closes #549
2016-05-20 11:00:14 -07:00
..
Makefile.am Retire spl_module_init()/spl_module_fini() 2015-02-27 13:43:39 -08:00
bitops_compat.h Map highbit64() to fls64() 2014-10-17 15:11:50 -07:00
compiler_compat.h Refresh links to web site 2013-03-04 19:09:34 -08:00
delay_compat.h Emulate illumos interface cv_timedwait_hires() 2013-11-04 09:49:24 -08:00
file_compat.h Linux 4.7 compat: inode_lock() and friends 2016-05-20 11:00:14 -07:00
list_compat.h Refresh links to web site 2013-03-04 19:09:34 -08:00
math64_compat.h Refresh links to web site 2013-03-04 19:09:34 -08:00
mm_compat.h Linux 3.12 compat: shrinker semantics 2014-10-28 09:20:13 -07:00
proc_compat.h Refactor existing code 2015-01-16 13:55:08 -08:00
rwsem_compat.h Retire rwsem_is_locked() compat 2015-06-10 16:35:48 -07:00
wait_compat.h Remove compat includes from sys/types.h 2014-11-19 10:35:12 -08:00
zlib_compat.h Refresh links to web site 2013-03-04 19:09:34 -08:00