mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
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: 7e13f4f8d2 ("nfsd: handle delegated timestamps in SETATTR")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
2990b5a479
commit
5affb498e7
|
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user