]> Gentwo Git Trees - linux/.git/commit
nfsd: use ATTR_CTIME_SET for delegated ctime updates
authorJeff Layton <jlayton@kernel.org>
Wed, 30 Jul 2025 13:24:33 +0000 (09:24 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 21 Sep 2025 23:24:50 +0000 (19:24 -0400)
commitc066ff58e5d6e5d7400e5fda0c33f95b8c37dd02
tree59148704ba10496353b5aa2430ef29c48834d50d
parentafc5b36e29b95fbd31a60b9630d148857e5e513d
nfsd: use ATTR_CTIME_SET for delegated ctime updates

Ensure that notify_change() doesn't clobber a delegated ctime update
with current_time() by setting ATTR_CTIME_SET for those updates.

Don't bother setting the timestamps in cb_getattr_update_times() in the
non-delegated case. notify_change() will do that itself.

Fixes: 7e13f4f8d27d ("nfsd: handle delegated timestamps in SETATTR")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c
fs/nfsd/nfs4xdr.c