diff options
author | Brian Behlendorf <[email protected]> | 2011-12-21 14:22:45 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-12-21 14:29:45 -0800 |
commit | 5f6c14b1eda9c7b47d11a3b90e78dea6a7f429e0 (patch) | |
tree | 1d8d0fb39a6e186027cdbf03d67892bed1a976ea /include/linux/mm_compat.h | |
parent | cd2817f8a6a3c0f7675c3ce954800c29eade5319 (diff) |
Proxmox VE kernel compat, invalidate_inodes()
The Proxmox VE kernel contains a patch which renames the function
invalidate_inodes() to invalidate_inodes_check(). In the process
it adds a 'check' argument and a '#define invalidate_inodes(x)'
compatibility wrapper for legacy callers. Therefore, if either
of these functions are exported invalidate_inodes() can be
safely used.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #58
Diffstat (limited to 'include/linux/mm_compat.h')
-rw-r--r-- | include/linux/mm_compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mm_compat.h b/include/linux/mm_compat.h index b375f9b39..14fc3d7bb 100644 --- a/include/linux/mm_compat.h +++ b/include/linux/mm_compat.h @@ -54,7 +54,7 @@ * As for 2.6.39 invalidate_inodes() was updated to take a second * argument which controls how dirty inodes should be handled. */ -#ifdef HAVE_INVALIDATE_INODES +#if defined(HAVE_INVALIDATE_INODES) || defined(HAVE_INVALIDATE_INODES_CHECK) # ifdef HAVE_2ARGS_INVALIDATE_INODES # define spl_invalidate_inodes(sb, kd) invalidate_inodes(sb, kd) # else @@ -70,7 +70,7 @@ typedef int (*invalidate_inodes_t)(struct super_block *sb); extern invalidate_inodes_t invalidate_inodes_fn; # define spl_invalidate_inodes(sb, kd) invalidate_inodes_fn(sb) # endif /* HAVE_2ARGS_INVALIDATE_INODES */ -#endif /* HAVE_INVALIDATE_INODES */ +#endif /* HAVE_INVALIDATE_INODES || HAVE_INVALIDATE_INODES_CHECK */ #if !defined(HAVE_SHRINK_CONTROL_STRUCT) struct shrink_control { |