diff options
Diffstat (limited to 'mm/shmem.c')
| -rw-r--r-- | mm/shmem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index db21c51531ca..eda907c3a86a 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
| @@ -45,6 +45,7 @@ | |||
| 45 | #include <linux/namei.h> | 45 | #include <linux/namei.h> |
| 46 | #include <linux/ctype.h> | 46 | #include <linux/ctype.h> |
| 47 | #include <linux/migrate.h> | 47 | #include <linux/migrate.h> |
| 48 | #include <linux/highmem.h> | ||
| 48 | 49 | ||
| 49 | #include <asm/uaccess.h> | 50 | #include <asm/uaccess.h> |
| 50 | #include <asm/div64.h> | 51 | #include <asm/div64.h> |
| @@ -1350,7 +1351,6 @@ shmem_get_inode(struct super_block *sb, int mode, dev_t dev) | |||
| 1350 | inode->i_mode = mode; | 1351 | inode->i_mode = mode; |
| 1351 | inode->i_uid = current->fsuid; | 1352 | inode->i_uid = current->fsuid; |
| 1352 | inode->i_gid = current->fsgid; | 1353 | inode->i_gid = current->fsgid; |
| 1353 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
| 1354 | inode->i_blocks = 0; | 1354 | inode->i_blocks = 0; |
| 1355 | inode->i_mapping->a_ops = &shmem_aops; | 1355 | inode->i_mapping->a_ops = &shmem_aops; |
| 1356 | inode->i_mapping->backing_dev_info = &shmem_backing_dev_info; | 1356 | inode->i_mapping->backing_dev_info = &shmem_backing_dev_info; |
| @@ -2156,8 +2156,7 @@ static int init_inodecache(void) | |||
| 2156 | 2156 | ||
| 2157 | static void destroy_inodecache(void) | 2157 | static void destroy_inodecache(void) |
| 2158 | { | 2158 | { |
| 2159 | if (kmem_cache_destroy(shmem_inode_cachep)) | 2159 | kmem_cache_destroy(shmem_inode_cachep); |
| 2160 | printk(KERN_INFO "shmem_inode_cache: not all structures were freed\n"); | ||
| 2161 | } | 2160 | } |
| 2162 | 2161 | ||
| 2163 | static const struct address_space_operations shmem_aops = { | 2162 | static const struct address_space_operations shmem_aops = { |
