Commit 5affb498 authored by Jeff Layton's avatar Jeff Layton Committed by Chuck Lever
Browse files

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: 7e13f4f8 ("nfsd: handle delegated timestamps in SETATTR")
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 2990b5a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

	/*