|
@@ -2309,17 +2309,14 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent)
|
|
int err = -ENOMEM;
|
|
int err = -ENOMEM;
|
|
|
|
|
|
/* Round up to L1_CACHE_BYTES to resist false sharing */
|
|
/* Round up to L1_CACHE_BYTES to resist false sharing */
|
|
- sbinfo = kmalloc(max((int)sizeof(struct shmem_sb_info),
|
|
|
|
|
|
+ sbinfo = kzalloc(max((int)sizeof(struct shmem_sb_info),
|
|
L1_CACHE_BYTES), GFP_KERNEL);
|
|
L1_CACHE_BYTES), GFP_KERNEL);
|
|
if (!sbinfo)
|
|
if (!sbinfo)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
- sbinfo->max_blocks = 0;
|
|
|
|
- sbinfo->max_inodes = 0;
|
|
|
|
sbinfo->mode = S_IRWXUGO | S_ISVTX;
|
|
sbinfo->mode = S_IRWXUGO | S_ISVTX;
|
|
sbinfo->uid = current_fsuid();
|
|
sbinfo->uid = current_fsuid();
|
|
sbinfo->gid = current_fsgid();
|
|
sbinfo->gid = current_fsgid();
|
|
- sbinfo->mpol = NULL;
|
|
|
|
sb->s_fs_info = sbinfo;
|
|
sb->s_fs_info = sbinfo;
|
|
|
|
|
|
#ifdef CONFIG_TMPFS
|
|
#ifdef CONFIG_TMPFS
|