On Thu, Nov 09, 2023 at 06:20:50AM +0000, Al Viro wrote: > Calls of retain_dentry() happen immediately after getting false > from fast_dput() and getting true from retain_dentry() is > treated the same way as non-zero refcount would be treated by > fast_dput() - unlock dentry and bugger off. > > Doing that in fast_dput() itself is simpler. > > Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx> > --- Slight context change in that retain_dentry()'s now called with rcu read lock held. Not that it should matter, Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>