Message ID | 20210205204204.h0rdk8Nti%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | + tmpfs-dont-use-64-bit-inodes-by-defulat-with-32-bit-ino_t.patch added to -mm tree | expand |
--- a/mm/shmem.c~tmpfs-dont-use-64-bit-inodes-by-defulat-with-32-bit-ino_t +++ a/mm/shmem.c @@ -3733,7 +3733,7 @@ static int shmem_fill_super(struct super ctx->blocks = shmem_default_max_blocks(); if (!(ctx->seen & SHMEM_SEEN_INODES)) ctx->inodes = shmem_default_max_inodes(); - if (!(ctx->seen & SHMEM_SEEN_INUMS)) + if (!(ctx->seen & SHMEM_SEEN_INUMS) && sizeof(ino_t) >= 8) ctx->full_inums = IS_ENABLED(CONFIG_TMPFS_INODE64); } else { sb->s_flags |= SB_NOUSER;