summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorAvi Weiss <thnkslprpt@gmail.com>2026-10-18 17:15:28 +0300
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-11-09 15:04:53 -0500
commita38d7cc8c90f0d093550487c2905b51db0be1522 (patch)
tree7a8c5cc15698b762cd5e44db8ab0049254bc38e6 /rust/kernel/alloc/kvec/errors.rs
parent2ffcf17d26dabef5793aeadf75a23c595a72be08 (diff)
NFS: update ctime for atime-only UTIME_NOW requests
When an NFS client holds a timestamp delegation, utimensat() with atime set to UTIME_NOW and mtime set to UTIME_OMIT reaches nfs_setattr() with ATTR_TIMES_SET but without ATTR_ATIME_SET. There may be other paths that can reach here as well. The delegated-atime fast path treats this as an implicit atime update, clears ATTR_ATIME and returns success without updating ctime. Add check for ATTR_TIMES_SET along with ATTR_ATIME_SET (OR) so explicit timestamp requests use the normal SETATTR path while incidental atime updates can keep using the local shortcut. Fixes: e12912d94137 ("NFSv4: Add support for delegated atime and mtime attributes") Signed-off-by: Avi Weiss <thnkslprpt@gmail.com> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions