pandora: defconfig: update
[pandora-kernel.git] / include / linux / aufs_type.h
index 2f2fbcd..83dae81 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2012 Junjiro R. Okajima
+ * Copyright (C) 2005-2013 Junjiro R. Okajima
  *
  * This program, aufs is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -30,8 +30,9 @@
 #define pr_fmt(fmt)    AUFS_NAME " %s:%d: " fmt, __func__, __LINE__
 #include <linux/sched.h>
 #undef pr_fmt
-#define pr_fmt(fmt)    AUFS_NAME " %s:%d:%s[%d]: " fmt, \
-               __func__, __LINE__, current->comm, current->pid
+#define pr_fmt(fmt) \
+               AUFS_NAME " %s:%d:%.*s[%d]: " fmt, __func__, __LINE__, \
+               (int)sizeof(current->comm), current->comm, current->pid
 #else
 #include <stdint.h>
 #include <sys/types.h>
@@ -39,7 +40,7 @@
 
 #include <linux/limits.h>
 
-#define AUFS_VERSION   "3.2-20120109"
+#define AUFS_VERSION   "3.2.x-20131104"
 
 /* todo? move this to linux-2.6.19/include/magic.h */
 #define AUFS_SUPER_MAGIC       ('a' << 24 | 'u' << 16 | 'f' << 8 | 's')
@@ -76,15 +77,15 @@ typedef int16_t aufs_bindex_t;
 #define AUFS_WH_PFX            ".wh."
 #define AUFS_WH_PFX_LEN                ((int)sizeof(AUFS_WH_PFX) - 1)
 #define AUFS_WH_TMP_LEN                4
-/* a limit for rmdir/rename a dir */
+/* a limit for rmdir/rename a dir and copyup */
 #define AUFS_MAX_NAMELEN       (NAME_MAX \
                                - AUFS_WH_PFX_LEN * 2   /* doubly whiteouted */\
                                - 1                     /* dot */\
                                - AUFS_WH_TMP_LEN)      /* hex */
 #define AUFS_XINO_FNAME                "." AUFS_NAME ".xino"
 #define AUFS_XINO_DEFPATH      "/tmp/" AUFS_XINO_FNAME
-#define AUFS_XINO_TRUNC_INIT   64 /* blocks */
-#define AUFS_XINO_TRUNC_STEP   4  /* blocks */
+#define AUFS_XINO_DEF_SEC      30 /* seconds */
+#define AUFS_XINO_DEF_TRUNC    45 /* percentage */
 #define AUFS_DIRWH_DEF         3
 #define AUFS_RDCACHE_DEF       10 /* seconds */
 #define AUFS_RDCACHE_MAX       3600 /* seconds */
@@ -93,7 +94,7 @@ typedef int16_t aufs_bindex_t;
 #define AUFS_WKQ_NAME          AUFS_NAME "d"
 #define AUFS_MFS_DEF_SEC       30 /* seconds */
 #define AUFS_MFS_MAX_SEC       3600 /* seconds */
-#define AUFS_PLINK_WARN                100 /* number of plinks */
+#define AUFS_PLINK_WARN                50 /* number of plinks in a single bucket */
 
 /* pseudo-link maintenace under /proc */
 #define AUFS_PLINK_MAINT_NAME  "plink_maint"
@@ -118,6 +119,7 @@ typedef int16_t aufs_bindex_t;
 #define AUFS_BRPERM_RR         "rr"
 #define AUFS_BRRATTR_WH                "wh"
 #define AUFS_BRWATTR_NLWH      "nolwh"
+#define AUFS_BRATTR_UNPIN      "unpin"
 
 /* ---------------------------------------------------------------------- */