diff options
-rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index e67d6ba4e98e..391f2dcca727 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -75,6 +75,7 @@ static struct vfsmount *shm_mnt; | |||
75 | #include <uapi/linux/memfd.h> | 75 | #include <uapi/linux/memfd.h> |
76 | #include <linux/userfaultfd_k.h> | 76 | #include <linux/userfaultfd_k.h> |
77 | #include <linux/rmap.h> | 77 | #include <linux/rmap.h> |
78 | #include <linux/uuid.h> | ||
78 | 79 | ||
79 | #include <linux/uaccess.h> | 80 | #include <linux/uaccess.h> |
80 | #include <asm/pgtable.h> | 81 | #include <asm/pgtable.h> |
@@ -3761,6 +3762,7 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent) | |||
3761 | #ifdef CONFIG_TMPFS_POSIX_ACL | 3762 | #ifdef CONFIG_TMPFS_POSIX_ACL |
3762 | sb->s_flags |= MS_POSIXACL; | 3763 | sb->s_flags |= MS_POSIXACL; |
3763 | #endif | 3764 | #endif |
3765 | uuid_gen(&sb->s_uuid); | ||
3764 | 3766 | ||
3765 | inode = shmem_get_inode(sb, NULL, S_IFDIR | sbinfo->mode, 0, VM_NORESERVE); | 3767 | inode = shmem_get_inode(sb, NULL, S_IFDIR | sbinfo->mode, 0, VM_NORESERVE); |
3766 | if (!inode) | 3768 | if (!inode) |