]> Git Repo - linux.git/commit - mm/shmem.c
tmpfs: add support for an i_version counter
authorJeff Layton <[email protected]>
Fri, 9 Sep 2022 13:00:31 +0000 (09:00 -0400)
committerAndrew Morton <[email protected]>
Mon, 3 Oct 2022 21:03:06 +0000 (14:03 -0700)
commit36f05cab0a2c97bda288c3b6a557ec5fb8d9bba6
tree5822bc43904c43dbce00d7dfe1aab83dd02e6633
parent5934ec1362b235c4341807c28f79b6a596ce1b40
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/[email protected]
Signed-off-by: Jeff Layton <[email protected]>
Cc: Chuck Lever <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
fs/posix_acl.c
mm/shmem.c
This page took 0.052086 seconds and 4 git commands to generate.