]> www.infradead.org Git - users/hch/misc.git/commitdiff
nfsd: ignore ATTR_DELEG when checking ia_valid before notify_change()
authorJeff Layton <jlayton@kernel.org>
Wed, 30 Jul 2025 13:24:31 +0000 (09:24 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 21 Sep 2025 23:24:50 +0000 (19:24 -0400)
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 <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/vfs.c

index edf050766e5705c13cfedffbe9e7e1f0dc3dfd90..3cd3b9e069f4af08e777ab10a56fb75fc2648da1 100644 (file)
@@ -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;
 
        /*