summaryrefslogtreecommitdiff
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-29 08:03:05 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-29 08:03:05 +0100
commit24cd719712aeb5b5e4562f37ef5f7ba33040b59f (patch)
tree689077bc9bf2e9f8b7df1c6a37dcefe8045912d7 /mm/shmem.c
parent84c365f8ff8fc93a34d6cabe780d0b0f49c177e2 (diff)
parentd58071a8a76d779eedab38033ae4c821c30295a5 (diff)
downloadlwn-24cd719712aeb5b5e4562f37ef5f7ba33040b59f.tar.gz
lwn-24cd719712aeb5b5e4562f37ef5f7ba33040b59f.zip
Merge 5.16-rc3 into staging-next
We need the staging driver fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index dc038ce78700..18f93c2d68f1 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -2303,6 +2303,7 @@ static struct inode *shmem_get_inode(struct super_block *sb, const struct inode
INIT_LIST_HEAD(&info->swaplist);
simple_xattrs_init(&info->xattrs);
cache_no_acl(inode);
+ mapping_set_large_folios(inode->i_mapping);
switch (mode & S_IFMT) {
default:
@@ -3870,7 +3871,7 @@ static struct file_system_type shmem_fs_type = {
.parameters = shmem_fs_parameters,
#endif
.kill_sb = kill_litter_super,
- .fs_flags = FS_USERNS_MOUNT | FS_THP_SUPPORT,
+ .fs_flags = FS_USERNS_MOUNT,
};
int __init shmem_init(void)