diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-13 19:00:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-13 19:00:22 -0500 |
commit | 187df6921c5e9d356a7522946655e11cc01c7f12 (patch) | |
tree | f942344735efe317273d7f0183b79ecc8e5cbed2 | |
parent | 13e6dd485d0b179d7fa15bd4b836b34760d0ff10 (diff) |
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>
-rw-r--r-- | drivers/staging/lustre/lustre/include/lustre_debug.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/staging/lustre/lustre/include/lustre_debug.h b/drivers/staging/lustre/lustre/include/lustre_debug.h index 3d9e4462af43..e789b68a1b3d 100644 --- a/drivers/staging/lustre/lustre/include/lustre_debug.h +++ b/drivers/staging/lustre/lustre/include/lustre_debug.h | |||
@@ -47,23 +47,6 @@ | |||
47 | 47 | ||
48 | #include <linux/lustre_debug.h> | 48 | #include <linux/lustre_debug.h> |
49 | 49 | ||
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 | |||
67 | /* lib/debug.c */ | 50 | /* lib/debug.c */ |
68 | void dump_lniobuf(struct niobuf_local *lnb); | 51 | void dump_lniobuf(struct niobuf_local *lnb); |
69 | int dump_req(struct ptlrpc_request *req); | 52 | int dump_req(struct ptlrpc_request *req); |