Jeff Layton 36f05cab0a 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>
2022-10-03 14:03:06 -07:00
..
2022-07-02 18:52:21 +09:00
2022-08-13 17:20:51 -07:00
2022-08-08 11:18:31 -07:00
2022-09-26 19:46:09 -07:00
2022-09-11 20:26:06 -07:00
2022-06-29 08:51:06 -04:00
2022-08-03 10:35:43 -07:00
2022-05-09 16:21:45 -04:00
2022-08-08 20:04:35 -07:00
2022-08-11 13:11:49 -07:00
2022-09-11 20:26:06 -07:00
2022-09-11 20:26:06 -07:00
2022-08-03 10:35:43 -07:00
2022-08-22 11:40:01 -07:00
2022-08-09 14:56:49 -07:00
2022-07-26 13:38:47 +02:00
2022-09-11 20:26:07 -07:00
2022-09-11 20:26:07 -07:00
2022-08-03 14:38:02 -07:00
2022-09-11 20:26:07 -07:00
2022-05-09 16:21:46 -04:00
2022-05-23 20:24:12 -05:00
2022-09-11 20:26:07 -07:00
2022-09-11 20:26:07 -07:00
2022-07-15 23:42:30 -07:00
2022-08-11 13:11:49 -07:00
2022-04-01 19:35:56 -07:00
2022-07-24 18:39:10 -06:00
2022-08-03 10:35:43 -07:00
2022-08-09 09:52:28 -07:00
2022-06-28 13:58:05 -04:00
2022-05-22 21:03:01 +01:00
2022-08-08 11:10:02 -07:00