mbox series

[RFC,0/2] ceph: cleanup of hardcoded invalid ID

Message ID 20250501194248.660959-1-slava@dubeyko.com
Headers show
Series ceph: cleanup of hardcoded invalid ID | expand

Message

Viacheslav Dubeyko May 1, 2025, 7:42 p.m. UTC
From: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>

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