mirror_zfs/include/linux
Brian Behlendorf 914b063133 Linux compat 2.6.37, invalidate_inodes()
In the 2.6.37 kernel the function invalidate_inodes() is no longer
exported for use by modules.  This memory management functionality
is needed to invalidate the inodes attached to a super block without
unmounting the filesystem.

Because this function still exists in the kernel and the prototype
is available is a common header all we strictly need is the symbol
address.  The address is obtained using spl_kallsyms_lookup_name()
and assigned to the variable invalidate_inodes_fn.  Then a #define
is used to replace all instances of invalidate_inodes() with a
call to the acquired address.  All the complexity is hidden behind
HAVE_INVALIDATE_INODES and invalidate_inodes() can be used as usual.

Long term we should try to get this, or another, interface made
available to modules again.
2011-02-23 12:44:32 -08:00
..
bitops_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
compiler_compat.h Fix compilation error due to undefined ACCESS_ONCE macro. 2010-07-20 13:47:52 -07:00
file_compat.h Linux Compat: inode->i_mutex/i_sem 2011-01-11 12:14:48 -08:00
kallsyms_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
list_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
Makefile.in Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
math64_compat.h Add __divdi3(), remove __udivdi3() kernel dependency 2010-07-13 16:44:02 -07:00
mm_compat.h Linux compat 2.6.37, invalidate_inodes() 2011-02-23 12:44:32 -08:00
module_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
mutex_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
proc_compat.h Linux-2.6.33 compat, .ctl_name removed from struct ctl_table 2010-06-30 12:49:12 -07:00
rwsem_compat.h Correctly handle rwsem_is_locked() behavior 2010-08-10 16:43:00 -07:00
smp_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
sysctl_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
time_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
uaccess_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00
workqueue_compat.h Public Release Prep 2010-05-17 15:18:00 -07:00