]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/shmem_fs.h
UBUNTU: SAUCE: Import aufs driver
[mirror_ubuntu-artful-kernel.git] / include / linux / shmem_fs.h
index a7d6bd2a918f73a71abcc2daf92fb412c22ac342..9e93fbcc53cbfd570d1b1d53146b21e3ecfd29d9 100644 (file)
@@ -24,10 +24,13 @@ struct shmem_inode_info {
 };
 
 struct shmem_sb_info {
+       struct mutex idr_lock;
+       bool idr_nouse;
+       struct idr idr;             /* manages inode-number */
        unsigned long max_blocks;   /* How many blocks are allowed */
        struct percpu_counter used_blocks;  /* How many are allocated */
-       unsigned long max_inodes;   /* How many inodes are allowed */
-       unsigned long free_inodes;  /* How many are left for allocation */
+       int max_inodes;             /* How many inodes are allowed */
+       int free_inodes;            /* How many are left for allocation */
        spinlock_t stat_lock;       /* Serialize shmem_sb_info changes */
        umode_t mode;               /* Mount mode for root directory */
        unsigned char huge;         /* Whether to try for hugepages */