From: Viacheslav Dubeyko <Slava.Dubeyko@xxxxxxx> 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(-) -- 2.48.0