X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fshmem_fs.h;fp=include%2Flinux%2Fshmem_fs.h;h=399be5ad2f996cb0124412d68a9f1b191cc1e685;hb=7e496299d4d2ad8083effed6c5a18313a919edc6;hp=e164291fb3e7562307cb8d0f5e51984eeb934bcc;hpb=27f5e0f694fd0600274a76854636c0749e3bb1f6;p=pandora-kernel.git diff --git a/include/linux/shmem_fs.h b/include/linux/shmem_fs.h index e164291fb3e7..399be5ad2f99 100644 --- a/include/linux/shmem_fs.h +++ b/include/linux/shmem_fs.h @@ -3,6 +3,7 @@ #include #include +#include /* inode in-kernel data */ @@ -23,7 +24,7 @@ struct shmem_inode_info { struct shmem_sb_info { unsigned long max_blocks; /* How many blocks are allowed */ - unsigned long free_blocks; /* How many are left for allocation */ + 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 */ spinlock_t stat_lock; /* Serialize shmem_sb_info changes */