{
        loff_t i_size;
 
+       if (!S_ISREG(inode->i_mode))
+               return false;
        if (shmem_huge == SHMEM_HUGE_DENY)
                return false;
        if (vma && ((vma->vm_flags & VM_NOHUGEPAGE) ||
        if (shmem_is_huge(NULL, inode, 0))
                stat->blksize = HPAGE_PMD_SIZE;
 
+       if (request_mask & STATX_BTIME) {
+               stat->result_mask |= STATX_BTIME;
+               stat->btime.tv_sec = info->i_crtime.tv_sec;
+               stat->btime.tv_nsec = info->i_crtime.tv_nsec;
+       }
+
        return 0;
 }
 
                return 0;
        }
 
-       /* Never use a huge page for shmem_symlink() */
-       if (S_ISLNK(inode->i_mode))
-               goto alloc_nohuge;
        if (!shmem_is_huge(vma, inode, index))
                goto alloc_nohuge;
 
                atomic_set(&info->stop_eviction, 0);
                info->seals = F_SEAL_SEAL;
                info->flags = flags & VM_NORESERVE;
+               info->i_crtime = inode->i_mtime;
                INIT_LIST_HEAD(&info->shrinklist);
                INIT_LIST_HEAD(&info->swaplist);
                simple_xattrs_init(&info->xattrs);
 #endif /* CONFIG_TMPFS_XATTR */
 
 static const struct inode_operations shmem_short_symlink_operations = {
+       .getattr        = shmem_getattr,
        .get_link       = simple_get_link,
 #ifdef CONFIG_TMPFS_XATTR
        .listxattr      = shmem_listxattr,
 };
 
 static const struct inode_operations shmem_symlink_inode_operations = {
+       .getattr        = shmem_getattr,
        .get_link       = shmem_get_link,
 #ifdef CONFIG_TMPFS_XATTR
        .listxattr      = shmem_listxattr,
 
 static const struct inode_operations shmem_dir_inode_operations = {
 #ifdef CONFIG_TMPFS
+       .getattr        = shmem_getattr,
        .create         = shmem_create,
        .lookup         = simple_lookup,
        .link           = shmem_link,
 };
 
 static const struct inode_operations shmem_special_inode_operations = {
+       .getattr        = shmem_getattr,
 #ifdef CONFIG_TMPFS_XATTR
        .listxattr      = shmem_listxattr,
 #endif