aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mutex_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mutex_compat.h')
-rw-r--r--include/linux/mutex_compat.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mutex_compat.h b/include/linux/mutex_compat.h
new file mode 100644
index 000000000..49072405e
--- /dev/null
+++ b/include/linux/mutex_compat.h
@@ -0,0 +1,12 @@
+#ifndef _SPL_MUTEX_COMPAT_H
+#define _SPL_MUTEX_COMPAT_H
+
+#include <linux/mutex.h>
+
+/* mutex_lock_nested() introduced in 2.6.18 */
+#ifndef HAVE_MUTEX_LOCK_NESTED
+# define mutex_lock_nested(lock, subclass) mutex_lock(lock)
+#endif /* HAVE_MUTEX_LOCK_NESTED */
+
+#endif /* _SPL_MUTEX_COMPAT_H */
+