X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Flinux%2Fmm_compat.h;h=c10652efd057dcf93ac65f4757de3181a3ab4722;hb=ce319db57b1662a21d60550e546592c96c3da7a1;hp=456fc51fc40d54f94fb43d3cb5385447b57b2852;hpb=46c936756ea26a52945eb8e8756e7c44ea9fc125;p=mirror_spl.git
diff --git a/include/linux/mm_compat.h b/include/linux/mm_compat.h
index 456fc51..c10652e 100644
--- a/include/linux/mm_compat.h
+++ b/include/linux/mm_compat.h
@@ -1,4 +1,4 @@
-/*****************************************************************************\
+/*
* Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
* Copyright (C) 2007 The Regents of the University of California.
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
@@ -20,10 +20,10 @@
*
* You should have received a copy of the GNU General Public License along
* with the SPL. If not, see .
-\*****************************************************************************/
+ */
#ifndef _SPL_MM_COMPAT_H
-#define _SPL_MM_COMPAT_H
+#define _SPL_MM_COMPAT_H
#include
#include
@@ -199,4 +199,11 @@ fn ## _scan_objects(struct shrinker *shrink, struct shrink_control *sc) \
#error "Unknown shrinker callback"
#endif
+#if defined(HAVE_SPLIT_SHRINKER_CALLBACK)
+typedef unsigned long spl_shrinker_t;
+#else
+typedef int spl_shrinker_t;
+#define SHRINK_STOP (-1)
+#endif
+
#endif /* SPL_MM_COMPAT_H */