xfs: reinstate the old i_version counter as STATX_CHANGE_COOKIE
authorJeff Layton <jlayton@kernel.org>
Fri, 29 Sep 2023 18:43:18 +0000 (14:43 -0400)
committerChandan Babu R <chandanbabu@kernel.org>
Thu, 12 Oct 2023 04:47:03 +0000 (10:17 +0530)
commitcbc06310c36f73a5f3b0c6f0d974d60cf66d816b
tree46917032ad609f8e12679a93c6920a8cff3e9605
parentf93b9300301d30f275f9bd7165cbb53d5094bd8d
xfs: reinstate the old i_version counter as STATX_CHANGE_COOKIE

The handling of STATX_CHANGE_COOKIE was moved into generic_fillattr in
commit 0d72b92883c6 (fs: pass the request_mask to generic_fillattr), but
we didn't account for the fact that xfs doesn't call generic_fillattr at
all.

Make XFS report its i_version as the STATX_CHANGE_COOKIE.

Fixes: 0d72b92883c6 (fs: pass the request_mask to generic_fillattr)
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_iops.c