Skip to content

RFC ceph: cleanup of hardcoded invalid ID

Viacheslav Dubeyko ceph-devel linux-fsdevel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ceph: introduce CEPH_INVALID_CACHE_IDXfs/ceph/dir.c fs/ceph/file.c fs/ceph/super.h+15 -70 replies
2/2ceph: exchange BUG_ON on WARN_ON in ceph_readdir()fs/ceph/Kconfig fs/ceph/dir.c+31 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] ceph: cleanup of hardcoded invalid ID

From: Viacheslav Dubeyko <[email protected]>

This patchset introduces CEPH_INVALID_CACHE_IDX instead of hardcoded value. Also, it reworks ceph_readdir() logic by introducing BUG_ON() for debug case and introduces WARN_ON() for release case.

Viacheslav Dubeyko (2):
ceph: introduce CEPH_INVALID_CACHE_IDX
ceph: exchange BUG_ON on WARN_ON in ceph_readdir()

 fs/ceph/Kconfig | 13 +++++++++++++
 fs/ceph/dir.c   | 33 ++++++++++++++++++++++++---------
 fs/ceph/file.c  |  2 +-
 fs/ceph/super.h |  8 ++++++++
 4 files changed, 46 insertions(+), 10 deletions(-)
Signature · 1 line
2.48.0