On Wed, 2026-04-08 at 15:45 +0200, Jan Kara wrote:
> On Tue 07-04-26 09:21:14, Jeff Layton wrote:
> > If a NFS client requests a directory delegation with a notification
> > bitmask covering directory change events, the server shouldn't recall
> > the delegation. Instead the client will be notified of the change after
> > the fact.
> > 
> > Add support for ignoring lease breaks on directory changes. Add a new
> > flags parameter to try_break_deleg() and teach __break_lease how to
> > ignore certain types of delegation break events.
> > 
> > Signed-off-by: Jeff Layton <[email protected]>
> 
> Looks good. Feel free to add:
> 
> Reviewed-by: Jan Kara <[email protected]>
> 
> > @@ -222,6 +225,10 @@ struct file_lease *locks_alloc_lease(void);
> >  #define LEASE_BREAK_LAYOUT         BIT(2)  // break layouts only
> >  #define LEASE_BREAK_NONBLOCK               BIT(3)  // non-blocking break
> >  #define LEASE_BREAK_OPEN_RDONLY            BIT(4)  // readonly open event
> > +#define LEASE_BREAK_DIR_CREATE             BIT(6)  // dir deleg create 
> > event
> > +#define LEASE_BREAK_DIR_DELETE             BIT(7)  // dir deleg delete 
> > event
> > +#define LEASE_BREAK_DIR_RENAME             BIT(8)  // dir deleg rename 
> > event
> 
> Just curious why you've left out bit 5 here... :)
> 
>                                                               Honza

No reason. I've had this series for a couple of years now, and I think
bit 5 got removed at some point after I originally did this patch, and
I didn't notice when I fixed up the conflict. I'll plan to renumber
this for neatness sake.

Thanks for the review!
-- 
Jeff Layton <[email protected]>

Reply via email to