]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: add support for delegated timestamps
authorJeff Layton <jlayton@kernel.org>
Mon, 9 Dec 2024 21:14:00 +0000 (16:14 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 21 Jan 2025 20:30:01 +0000 (15:30 -0500)
commit6ae30d6eb26bce02c48c60074b4306270e2434c1
treea73c83ce22de15b135f9104617fa860e0497cf21
parentcee9b4ef42512a6e57562460a15f18a022c84dda
nfsd: add support for delegated timestamps

Add support for the delegated timestamps on write delegations. This
allows the server to proxy timestamps from the delegation holder to
other clients that are doing GETATTRs vs. the same inode.

When OPEN4_SHARE_ACCESS_WANT_DELEG_TIMESTAMPS bit is set in the OPEN
call, set the dl_type to the *_ATTRS_DELEG flavor of delegation.

Add timespec64 fields to nfs4_cb_fattr and decode the timestamps into
those. Vet those timestamps according to the delstid spec and update
the inode attrs if necessary.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4callback.c
fs/nfsd/nfs4state.c
fs/nfsd/nfs4xdr.c
fs/nfsd/nfsd.h
fs/nfsd/state.h
fs/nfsd/xdr4cb.h
include/linux/time64.h