From: Jeff Layton Date: Wed, 30 Jul 2025 13:24:31 +0000 (-0400) Subject: nfsd: ignore ATTR_DELEG when checking ia_valid before notify_change() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5affb498e70bba3053b835c478a199bf92c99c4d;p=users%2Fhch%2Fmisc.git nfsd: ignore ATTR_DELEG when checking ia_valid before notify_change() If the only flag left is ATTR_DELEG, then there are no changes to be made. Fixes: 7e13f4f8d27d ("nfsd: handle delegated timestamps in SETATTR") Signed-off-by: Jeff Layton Signed-off-by: Chuck Lever --- diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index edf050766e57..3cd3b9e069f4 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -467,7 +467,7 @@ static int __nfsd_setattr(struct dentry *dentry, struct iattr *iap) return 0; } - if (!iap->ia_valid) + if ((iap->ia_valid & ~ATTR_DELEG) == 0) return 0; /*