mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] lockref tidy ups + touch ups to it's usage by dcache
@ 2026-07-24 17:14 Mateusz Guzik
  2026-07-24 17:14 ` [PATCH 1/2] lockref: tidy up dead count handling Mateusz Guzik
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mateusz Guzik @ 2026-07-24 17:14 UTC (permalink / raw)
  To: brauner; +Cc: viro, jack, linux-kernel, linux-fsdevel, Mateusz Guzik

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(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-28 14:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-24 17:14 [PATCH 0/2] lockref tidy ups + touch ups to it's usage by dcache Mateusz Guzik
2026-07-24 17:14 ` [PATCH 1/2] lockref: tidy up dead count handling Mateusz Guzik
2026-07-28 14:32   ` Jan Kara
2026-07-24 17:14 ` [PATCH 2/2] dcache: use lockref routines for dead count checks Mateusz Guzik
2026-07-28 14:33   ` Jan Kara
2026-07-27 14:20 ` [PATCH 0/2] lockref tidy ups + touch ups to it's usage by dcache Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®