]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/shmem_fs.h
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()
[mirror_ubuntu-bionic-kernel.git] / include / linux / shmem_fs.h
index 06b295bec00dd8bd3310290d147c97a3166bc706..45e4de618bdde30e2296c5b40458fb5327bcc1a0 100644 (file)
@@ -25,10 +25,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 */