On Thu, Nov 09, 2023 at 06:20:41AM +0000, Al Viro wrote: > ... we won't see DCACHE_MAY_FREE on anything that is *not* dead > and checking d_flags is just as cheap as checking refcount. > > Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx> > --- Could also be a WARN_ON_ONCE() on d_lockref.count > 0 if DCACHE_MAY_FREE is set but probably doesn't matter, Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>