aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exofs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exofs')
-rw-r--r--fs/exofs/inode.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/fs/exofs/inode.c b/fs/exofs/inode.c
index 44748613be07..01fa798e8fdb 100644
--- a/fs/exofs/inode.c
+++ b/fs/exofs/inode.c
@@ -41,6 +41,8 @@
41# define EXOFS_DEBUG_OBJ_ISIZE 1 41# define EXOFS_DEBUG_OBJ_ISIZE 1
42#endif 42#endif
43 43
44#define EXOFS_DBGMSG2(M...) do {} while (0)
45
44struct page_collect { 46struct page_collect {
45 struct exofs_sb_info *sbi; 47 struct exofs_sb_info *sbi;
46 struct request_queue *req_q; 48 struct request_queue *req_q;
@@ -198,7 +200,7 @@ static int __readpages_done(struct osd_request *or, struct page_collect *pcol,
198 else 200 else
199 page_stat = ret; 201 page_stat = ret;
200 202
201 EXOFS_DBGMSG(" readpages_done(0x%lx, 0x%lx) %s\n", 203 EXOFS_DBGMSG2(" readpages_done(0x%lx, 0x%lx) %s\n",
202 inode->i_ino, page->index, 204 inode->i_ino, page->index,
203 page_stat ? "bad_bytes" : "good_bytes"); 205 page_stat ? "bad_bytes" : "good_bytes");
204 206
@@ -370,12 +372,12 @@ try_again:
370 if (len != PAGE_CACHE_SIZE) 372 if (len != PAGE_CACHE_SIZE)
371 zero_user(page, len, PAGE_CACHE_SIZE - len); 373 zero_user(page, len, PAGE_CACHE_SIZE - len);
372 374
373 EXOFS_DBGMSG(" readpage_strip(0x%lx, 0x%lx) len=0x%zx\n", 375 EXOFS_DBGMSG2(" readpage_strip(0x%lx, 0x%lx) len=0x%zx\n",
374 inode->i_ino, page->index, len); 376 inode->i_ino, page->index, len);
375 377
376 ret = pcol_add_page(pcol, page, len); 378 ret = pcol_add_page(pcol, page, len);
377 if (ret) { 379 if (ret) {
378 EXOFS_DBGMSG("Failed pcol_add_page pages[i]=%p " 380 EXOFS_DBGMSG2("Failed pcol_add_page pages[i]=%p "
379 "this_len=0x%zx nr_pages=%u length=0x%lx\n", 381 "this_len=0x%zx nr_pages=%u length=0x%lx\n",
380 page, len, pcol->nr_pages, pcol->length); 382 page, len, pcol->nr_pages, pcol->length);
381 383
@@ -482,7 +484,7 @@ static void writepages_done(struct osd_request *or, void *p)
482 484
483 update_write_page(page, page_stat); 485 update_write_page(page, page_stat);
484 unlock_page(page); 486 unlock_page(page);
485 EXOFS_DBGMSG(" writepages_done(0x%lx, 0x%lx) status=%d\n", 487 EXOFS_DBGMSG2(" writepages_done(0x%lx, 0x%lx) status=%d\n",
486 inode->i_ino, page->index, page_stat); 488 inode->i_ino, page->index, page_stat);
487 489
488 length += bvec->bv_len; 490 length += bvec->bv_len;
@@ -609,7 +611,7 @@ try_again:
609 goto fail; 611 goto fail;
610 } 612 }
611 613
612 EXOFS_DBGMSG(" writepage_strip(0x%lx, 0x%lx) len=0x%zx\n", 614 EXOFS_DBGMSG2(" writepage_strip(0x%lx, 0x%lx) len=0x%zx\n",
613 inode->i_ino, page->index, len); 615 inode->i_ino, page->index, len);
614 616
615 ret = pcol_add_page(pcol, page, len); 617 ret = pcol_add_page(pcol, page, len);