mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 23:23:03 +00:00
fix nommu breakage in shmem.c
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
dd37978c50
commit
26567cdbbf
@ -2932,9 +2932,8 @@ struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags
|
|||||||
inode->i_size = size;
|
inode->i_size = size;
|
||||||
clear_nlink(inode); /* It is unlinked */
|
clear_nlink(inode); /* It is unlinked */
|
||||||
#ifndef CONFIG_MMU
|
#ifndef CONFIG_MMU
|
||||||
error = ramfs_nommu_expand_for_mapping(inode, size);
|
res = ERR_PTR(ramfs_nommu_expand_for_mapping(inode, size));
|
||||||
res = ERR_PTR(error);
|
if (IS_ERR(res))
|
||||||
if (error)
|
|
||||||
goto put_dentry;
|
goto put_dentry;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user