Skip to content

Commit

Permalink
staging: lustre: remove some unused debug macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Jan 14, 2014
1 parent 13e6dd4 commit 187df69
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions drivers/staging/lustre/lustre/include/lustre_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,6 @@

#include <linux/lustre_debug.h>

#define ASSERT_MAX_SIZE_MB 60000ULL
#define ASSERT_PAGE_INDEX(index, OP) \
do { if (index > ASSERT_MAX_SIZE_MB << (20 - PAGE_CACHE_SHIFT)) { \
CERROR("bad page index %lu > %llu\n", index, \
ASSERT_MAX_SIZE_MB << (20 - PAGE_CACHE_SHIFT)); \
libcfs_debug = ~0UL; \
OP; \
}} while(0)

#define ASSERT_FILE_OFFSET(offset, OP) \
do { if (offset > ASSERT_MAX_SIZE_MB << 20) { \
CERROR("bad file offset %llu > %llu\n", offset, \
ASSERT_MAX_SIZE_MB << 20); \
libcfs_debug = ~0UL; \
OP; \
}} while(0)

/* lib/debug.c */
void dump_lniobuf(struct niobuf_local *lnb);
int dump_req(struct ptlrpc_request *req);
Expand Down

0 comments on commit 187df69

Please sign in to comment.