mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
exofs: dbg-print less
Iner-loops printing is converted to EXOFS_DBG2 which is #defined to nothing. It is now almost bareable to just leave debug-on. Every operation is printed once, with most relevant info (I hope). Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
This commit is contained in:
parent
58311c43df
commit
fe33cc1ee1
1 changed files with 7 additions and 5 deletions
|
@ -41,6 +41,8 @@
|
||||||
# define EXOFS_DEBUG_OBJ_ISIZE 1
|
# define EXOFS_DEBUG_OBJ_ISIZE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define EXOFS_DBGMSG2(M...) do {} while (0)
|
||||||
|
|
||||||
struct page_collect {
|
struct page_collect {
|
||||||
struct exofs_sb_info *sbi;
|
struct exofs_sb_info *sbi;
|
||||||
struct request_queue *req_q;
|
struct request_queue *req_q;
|
||||||
|
@ -198,7 +200,7 @@ static int __readpages_done(struct osd_request *or, struct page_collect *pcol,
|
||||||
else
|
else
|
||||||
page_stat = ret;
|
page_stat = ret;
|
||||||
|
|
||||||
EXOFS_DBGMSG(" readpages_done(0x%lx, 0x%lx) %s\n",
|
EXOFS_DBGMSG2(" readpages_done(0x%lx, 0x%lx) %s\n",
|
||||||
inode->i_ino, page->index,
|
inode->i_ino, page->index,
|
||||||
page_stat ? "bad_bytes" : "good_bytes");
|
page_stat ? "bad_bytes" : "good_bytes");
|
||||||
|
|
||||||
|
@ -370,12 +372,12 @@ static int readpage_strip(void *data, struct page *page)
|
||||||
if (len != PAGE_CACHE_SIZE)
|
if (len != PAGE_CACHE_SIZE)
|
||||||
zero_user(page, len, PAGE_CACHE_SIZE - len);
|
zero_user(page, len, PAGE_CACHE_SIZE - len);
|
||||||
|
|
||||||
EXOFS_DBGMSG(" readpage_strip(0x%lx, 0x%lx) len=0x%zx\n",
|
EXOFS_DBGMSG2(" readpage_strip(0x%lx, 0x%lx) len=0x%zx\n",
|
||||||
inode->i_ino, page->index, len);
|
inode->i_ino, page->index, len);
|
||||||
|
|
||||||
ret = pcol_add_page(pcol, page, len);
|
ret = pcol_add_page(pcol, page, len);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
EXOFS_DBGMSG("Failed pcol_add_page pages[i]=%p "
|
EXOFS_DBGMSG2("Failed pcol_add_page pages[i]=%p "
|
||||||
"this_len=0x%zx nr_pages=%u length=0x%lx\n",
|
"this_len=0x%zx nr_pages=%u length=0x%lx\n",
|
||||||
page, len, pcol->nr_pages, pcol->length);
|
page, len, pcol->nr_pages, pcol->length);
|
||||||
|
|
||||||
|
@ -482,7 +484,7 @@ static void writepages_done(struct osd_request *or, void *p)
|
||||||
|
|
||||||
update_write_page(page, page_stat);
|
update_write_page(page, page_stat);
|
||||||
unlock_page(page);
|
unlock_page(page);
|
||||||
EXOFS_DBGMSG(" writepages_done(0x%lx, 0x%lx) status=%d\n",
|
EXOFS_DBGMSG2(" writepages_done(0x%lx, 0x%lx) status=%d\n",
|
||||||
inode->i_ino, page->index, page_stat);
|
inode->i_ino, page->index, page_stat);
|
||||||
|
|
||||||
length += bvec->bv_len;
|
length += bvec->bv_len;
|
||||||
|
@ -609,7 +611,7 @@ static int writepage_strip(struct page *page,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
EXOFS_DBGMSG(" writepage_strip(0x%lx, 0x%lx) len=0x%zx\n",
|
EXOFS_DBGMSG2(" writepage_strip(0x%lx, 0x%lx) len=0x%zx\n",
|
||||||
inode->i_ino, page->index, len);
|
inode->i_ino, page->index, len);
|
||||||
|
|
||||||
ret = pcol_add_page(pcol, page, len);
|
ret = pcol_add_page(pcol, page, len);
|
||||||
|
|
Loading…
Reference in a new issue