Skip to content

lockref tidy ups + touch ups to it's usage by dcache

Mateusz Guzik linux-fsdevel lkml 1 version Applied

Status from this message: Applied to the vfs-7.3.misc branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2lockref: tidy up dead count handlingfs/ceph/dir.c fs/erofs/zdata.c fs/gfs2/glock.c +6 more+26 -181 reply
2/2dcache: use lockref routines for dead count checksfs/dcache.c+8 -81 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJan Kara
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] 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.

Mateusz Guzik (2):
lockref: tidy up dead count handling
dcache: use lockref routines for dead count checks

 fs/ceph/dir.c           |  2 +-
 fs/dcache.c             | 16 ++++++++--------
 fs/erofs/zdata.c        |  4 ++--
 fs/gfs2/glock.c         |  6 +++---
 fs/gfs2/lock_dlm.c      |  6 +++---
 fs/gfs2/quota.c         |  4 ++--
 fs/xfs/xfs_buf.c        |  4 ++--
 fs/xfs/xfs_qm.c         |  4 ++--
 include/linux/lockref.h | 12 ++++++++++--
 lib/lockref.c           |  2 +-
 10 files changed, 34 insertions(+), 26 deletions(-)
Signature · 1 line
2.48.1