diff options
| author | Jeff Layton <jlayton@kernel.org> | 2026-06-16 07:58:52 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-08-10 09:54:35 -0400 |
| commit | b79feed6f0aa80af1da417803e14d2d3594de177 (patch) | |
| tree | 398af733154e281ae797a11fce8110f87de800f3 /net/802 | |
| parent | a66d695c954279d7c08d5416012d4fcfecf20e94 (diff) | |
nfsd: add data structures for handling CB_NOTIFY
Add the data structures, allocation helpers, and callback operations
needed for directory delegation CB_NOTIFY support:
- struct nfsd_notify_event: carries fsnotify events for CB_NOTIFY
- struct nfsd4_cb_notify: per-delegation state for notification handling
- Union dl_cb_fattr with dl_cb_notify in nfs4_delegation since a
delegation is either a regular file delegation or a directory
delegation, never both
Refactor alloc_init_deleg() into a common __alloc_init_deleg() base
with a pluggable sc_free callback, and add alloc_init_dir_deleg() which
allocates the page array and notify4 buffer needed for CB_NOTIFY
encoding.
Add skeleton nfsd4_cb_notify_ops with done/release handlers that will
be filled in when the notification path is wired up.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260616-dir-deleg-v7-9-6cbc7eac0ade@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'net/802')
0 files changed, 0 insertions, 0 deletions
