import PULS_20180308
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / fs.h
index c585451da0ec208a8a620ba41a872cee913eb832..3b70fb0cb5b3b7342c3c5fc73eb6e78e2abba4f6 100644 (file)
@@ -244,6 +244,12 @@ struct iattr {
  */
 #include <linux/quota.h>
 
+/*
+ * Maximum number of layers of fs stack. Needs to be limited to
+ * prevent kernel stack overflow
+ */
+#define FILESYSTEM_MAX_STACK_DEPTH 2
+
 /** 
  * enum positive_aop_returns - aop return codes with specific semantics
  *
@@ -1322,6 +1328,11 @@ struct super_block {
 
        /* Being remounted read-only */
        int s_readonly_remount;
+
+       /*
+        * Indicates how deep in a filesystem stack this SB is
+        */
+       int s_stack_depth;
 };
 
 /* superblock cache pruning functions */