diff options
author | 2022-09-09 09:00:31 -0400 | |
---|---|---|
committer | 2022-10-03 14:03:06 -0700 | |
commit | 36f05cab0a2c97bda288c3b6a557ec5fb8d9bba6 (patch) | |
tree | 5822bc43904c43dbce00d7dfe1aab83dd02e6633 /mm/hugetlb.c | |
parent | mm/damon/vaddr: add a comment for 'default' case in damon_va_apply_scheme() (diff) | |
download | wireguard-linux-36f05cab0a2c97bda288c3b6a557ec5fb8d9bba6.tar.xz wireguard-linux-36f05cab0a2c97bda288c3b6a557ec5fb8d9bba6.zip |
tmpfs: add support for an i_version counter
NFSv4 mandates a change attribute to avoid problems with timestamp
granularity, which Linux implements using the i_version counter. This is
particularly important when the underlying filesystem is fast.
Give tmpfs an i_version counter. Since it doesn't have to be persistent,
we can just turn on SB_I_VERSION and sprinkle some inode_inc_iversion
calls in the right places.
Also, while there is no formal spec for xattrs, most implementations
update the ctime on setxattr. Fix shmem_xattr_handler_set to update the
ctime and bump the i_version appropriately.
Link: https://lkml.kernel.org/r/20220909130031.15477-1-jlayton@kernel.org
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Cc: Chuck Lever <chuck.lever@oracle.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions