Skip to content

Commit 187df69

Browse files
committed
staging: lustre: remove some unused debug macros
Odd page size checks aren't even being used, so delete them so no one gets a bright idea to use them ever. Cc: Peng Tao <bergwolf@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 13e6dd4 commit 187df69

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

drivers/staging/lustre/lustre/include/lustre_debug.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,6 @@
4747

4848
#include <linux/lustre_debug.h>
4949

50-
#define ASSERT_MAX_SIZE_MB 60000ULL
51-
#define ASSERT_PAGE_INDEX(index, OP) \
52-
do { if (index > ASSERT_MAX_SIZE_MB << (20 - PAGE_CACHE_SHIFT)) { \
53-
CERROR("bad page index %lu > %llu\n", index, \
54-
ASSERT_MAX_SIZE_MB << (20 - PAGE_CACHE_SHIFT)); \
55-
libcfs_debug = ~0UL; \
56-
OP; \
57-
}} while(0)
58-
59-
#define ASSERT_FILE_OFFSET(offset, OP) \
60-
do { if (offset > ASSERT_MAX_SIZE_MB << 20) { \
61-
CERROR("bad file offset %llu > %llu\n", offset, \
62-
ASSERT_MAX_SIZE_MB << 20); \
63-
libcfs_debug = ~0UL; \
64-
OP; \
65-
}} while(0)
66-
6750
/* lib/debug.c */
6851
void dump_lniobuf(struct niobuf_local *lnb);
6952
int dump_req(struct ptlrpc_request *req);

0 commit comments

Comments
 (0)