mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
nfsd: fix assignment of ia_ctime.tv_nsec on delegated mtime update
The ia_ctime.tv_nsec field should be set to modify.nseconds.
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
d68886bae7
commit
2990b5a479
|
|
@ -538,7 +538,7 @@ nfsd4_decode_fattr4(struct nfsd4_compoundargs *argp, u32 *bmval, u32 bmlen,
|
|||
iattr->ia_mtime.tv_sec = modify.seconds;
|
||||
iattr->ia_mtime.tv_nsec = modify.nseconds;
|
||||
iattr->ia_ctime.tv_sec = modify.seconds;
|
||||
iattr->ia_ctime.tv_nsec = modify.seconds;
|
||||
iattr->ia_ctime.tv_nsec = modify.nseconds;
|
||||
iattr->ia_valid |= ATTR_CTIME | ATTR_MTIME | ATTR_MTIME_SET | ATTR_DELEG;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user