Re: [PATCH v4 20/21] nfsd: track requested dir attributes

From: Chuck Lever

Date: Fri May 22 2026 - 10:01:00 EST



On Fri, May 22, 2026, at 8:29 AM, Jeff Layton wrote:
> Track the union of requested and supported dir attributes in the
> delegation, and only encode the attributes in that union when sending
> add/remove/rename updates.

Nit: The encode-time use of dl_notify_mask for NOTIFY4_CHANGE_DIR_ATTRS
is wired up in 21/21. This patch adds only the tracking; the per-event
encoder change lives in the subsequent patch.


> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
> ---
> fs/nfsd/nfs4proc.c | 9 ++++++---
> fs/nfsd/nfs4state.c | 14 +++++++++++++-
> fs/nfsd/state.h | 2 ++
> 3 files changed, 21 insertions(+), 4 deletions(-)


--
Chuck Lever