]> git.ipfire.org Git - thirdparty/linux.git/commit
nfs: update inode ctime after removexattr operation
authorJeff Layton <jlayton@kernel.org>
Tue, 24 Mar 2026 17:32:12 +0000 (13:32 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 13 Apr 2026 18:46:08 +0000 (11:46 -0700)
commit9c332d7f63401c3ff1765c9998531b3784f3f9a4
treedc98200e9ae5153eeee2081bf43206abd2b7aa57
parent16d99dce938ecbbc703843a31fb951acca46af27
nfs: update inode ctime after removexattr operation

xfstest generic/728 fails with delegated timestamps. The client does a
removexattr and then a stat to test the ctime, which doesn't change. The
stat() doesn't trigger a GETATTR because of the delegated timestamps, so
it relies on the cached ctime, which is wrong.

The setxattr compound has a trailing GETATTR, which ensures that its
ctime gets updated. Follow the same strategy with removexattr.

Fixes: 3e1f02123fba ("NFSv4.2: add client side XDR handling for extended attributes")
Reported-by: Olga Kornievskaia <aglo@umich.edu>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs42proc.c
fs/nfs/nfs42xdr.c
include/linux/nfs_xdr.h