diff options
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 4fad61bb41e5..cd6fc7590e54 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -2995,7 +2995,7 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent) | |||
2995 | #endif | 2995 | #endif |
2996 | 2996 | ||
2997 | spin_lock_init(&sbinfo->stat_lock); | 2997 | spin_lock_init(&sbinfo->stat_lock); |
2998 | if (percpu_counter_init(&sbinfo->used_blocks, 0)) | 2998 | if (percpu_counter_init(&sbinfo->used_blocks, 0, GFP_KERNEL)) |
2999 | goto failed; | 2999 | goto failed; |
3000 | sbinfo->free_inodes = sbinfo->max_inodes; | 3000 | sbinfo->free_inodes = sbinfo->max_inodes; |
3001 | 3001 | ||