Skip to content
Commit f7cd16a5 authored by Xavier Roche's avatar Xavier Roche Committed by Linus Torvalds
Browse files

tmpfs: support for file creation time

Various filesystems (including ext4) now support file creation time.
This adds such support for tmpfs-based filesystems.

Note that using shmem_getattr() on other file types than regular
requires that shmem_is_huge() check type, to stop incorrect
HPAGE_PMD_SIZE blksize.

[hughd@google.com: three tweaks to creation time patch]
  Link: https://lkml.kernel.org/r/b954973a-b8d1-cab8-63bd-6ea8063de3@google.com

Link: https://lkml.kernel.org/r/20220314211150.GA123458@xavier-xps
Link: https://lkml.kernel.org/r/b954973a-b8d1-cab8-63bd-6ea8063de3@google.com
Link: https://lkml.kernel.org/r/20220211213628.GA1919658@xavier-xps


Signed-off-by: default avatarXavier Roche <xavier.roche@algolia.com>
Signed-off-by: default avatarHugh Dickins <hughd@google.com>
Tested-by: default avatarJean Delvare <jdelvare@suse.de>
Tested-by: default avatarSylvain Bellone <sylvain.bellone@algolia.com>
Reported-by: default avatarXavier Grand <xavier.grand@algolia.com>
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 914c32e4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment