nfs: don't report STATX_BTIME in ->getattr
authorJeff Layton <jlayton@kernel.org>
Mon, 12 Jun 2023 13:34:04 +0000 (09:34 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Jun 2023 21:16:43 +0000 (17:16 -0400)
commitcded49ba366220ae7009d71c5804baa01acfb860
tree096cebb4b0b3be8eda98e1d33d8e9238ab5bd74d
parentc907e72f58ed979a24a9fdcadfbc447c51d5e509
nfs: don't report STATX_BTIME in ->getattr

NFS doesn't properly support reporting the btime in getattr (yet), but
61a968b4f05e mistakenly added it to the request_mask. This causes statx
for STATX_BTIME to report a zeroed out btime instead of properly
clearing the flag.

Cc: stable@vger.kernel.org # v6.3+
Fixes: 61a968b4f05e ("nfs: report the inode version in getattr if requested")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2214134
Reported-by: Boyang Xue <bxue@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c