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