aboutsummaryrefslogtreecommitdiffstats
path: root/fs/tux3/mmap_builtin_hack.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/tux3/mmap_builtin_hack.h')
-rw-r--r--fs/tux3/mmap_builtin_hack.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/tux3/mmap_builtin_hack.h b/fs/tux3/mmap_builtin_hack.h
new file mode 100644
index 00000000000000..b313506ae61b0a
--- /dev/null
+++ b/fs/tux3/mmap_builtin_hack.h
@@ -0,0 +1,13 @@
+#ifndef _MMAP_HACK_H
+#define _MMAP_HACK_H
+
+#ifdef CONFIG_TUX3_MMAP
+int page_cow_file(struct page *oldpage, struct page *newpage);
+#else
+static inline int page_cow_file(struct page *oldpage, struct page *newpage)
+{
+ return 0;
+}
+#endif
+
+#endif /* !_MMAP_HACK_H */