Re: [PATCH 0/2] lockref tidy ups + touch ups to it's usage by dcache
From: Christian Brauner
Date: Mon Jul 27 2026 - 10:33:38 EST
On Fri, 24 Jul 2026 19:14:20 +0200, Mateusz Guzik wrote:
> lockref tidy ups + touch ups to it's usage by dcache
>
> The open-coded check for < 0 indicating a dead object uses information
> it should not know, so to speak.
>
> This is a preliminary clean up for a longer term goal of moving dcache
> away from lockref into an approach which can atomic_add both ways
> instead of suffering the cmpxchg loop.
>
> [...]
Nice cleanup!
---
Applied to the vfs-7.3.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.3.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.3.misc
[1/2] lockref: tidy up dead count handling
https://git.kernel.org/vfs/vfs/c/21a8e8068278
[2/2] dcache: use lockref routines for dead count checks
https://git.kernel.org/vfs/vfs/c/4f87acca1a2e