Skip to content

Commit 5affb49

Browse files
jtlaytonchucklever
authored andcommitted
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: 7e13f4f ("nfsd: handle delegated timestamps in SETATTR") Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 2990b5a commit 5affb49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/nfsd/vfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ static int __nfsd_setattr(struct dentry *dentry, struct iattr *iap)
467467
return 0;
468468
}
469469

470-
if (!iap->ia_valid)
470+
if ((iap->ia_valid & ~ATTR_DELEG) == 0)
471471
return 0;
472472

473473
/*

0 commit comments

Comments
 (0)