diff options
| author | Boaz Harrosh <bharrosh@panasas.com> | 2014-01-14 09:26:13 -0500 |
|---|---|---|
| committer | Boaz Harrosh <bharrosh@panasas.com> | 2014-01-23 11:54:14 -0500 |
| commit | 19350e7627a6f3b0f662cbd2eb1128c9961a41fe (patch) | |
| tree | c876d985945c391b304004c6135703d3e607843e /fs/exofs | |
| parent | c8592fcc66b2fe9cbd505f1faff810f8844d4a97 (diff) | |
exofs: Print less in r4w
In debug mode exofs is too verbose. Hiding the real problems
remove some trivial stuff.
Also fix some other prints.
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/exofs')
| -rw-r--r-- | fs/exofs/inode.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/exofs/inode.c b/fs/exofs/inode.c index 390224a162d0..ee4317faccb1 100644 --- a/fs/exofs/inode.c +++ b/fs/exofs/inode.c | |||
| @@ -577,7 +577,7 @@ static struct page *__r4w_get_page(void *priv, u64 offset, bool *uptodate) | |||
| 577 | 577 | ||
| 578 | if (offset >= i_size) { | 578 | if (offset >= i_size) { |
| 579 | *uptodate = true; | 579 | *uptodate = true; |
| 580 | EXOFS_DBGMSG("offset >= i_size index=0x%lx\n", index); | 580 | EXOFS_DBGMSG2("offset >= i_size index=0x%lx\n", index); |
| 581 | return ZERO_PAGE(0); | 581 | return ZERO_PAGE(0); |
| 582 | } | 582 | } |
| 583 | 583 | ||
| @@ -596,10 +596,10 @@ static struct page *__r4w_get_page(void *priv, u64 offset, bool *uptodate) | |||
| 596 | *uptodate = true; | 596 | *uptodate = true; |
| 597 | else | 597 | else |
| 598 | *uptodate = PageUptodate(page); | 598 | *uptodate = PageUptodate(page); |
| 599 | EXOFS_DBGMSG("index=0x%lx uptodate=%d\n", index, *uptodate); | 599 | EXOFS_DBGMSG2("index=0x%lx uptodate=%d\n", index, *uptodate); |
| 600 | return page; | 600 | return page; |
| 601 | } else { | 601 | } else { |
| 602 | EXOFS_DBGMSG("YES that_locked_page index=0x%lx\n", | 602 | EXOFS_DBGMSG2("YES that_locked_page index=0x%lx\n", |
| 603 | pcol->that_locked_page->index); | 603 | pcol->that_locked_page->index); |
| 604 | *uptodate = true; | 604 | *uptodate = true; |
| 605 | return pcol->that_locked_page; | 605 | return pcol->that_locked_page; |
| @@ -611,11 +611,11 @@ static void __r4w_put_page(void *priv, struct page *page) | |||
| 611 | struct page_collect *pcol = priv; | 611 | struct page_collect *pcol = priv; |
| 612 | 612 | ||
| 613 | if ((pcol->that_locked_page != page) && (ZERO_PAGE(0) != page)) { | 613 | if ((pcol->that_locked_page != page) && (ZERO_PAGE(0) != page)) { |
| 614 | EXOFS_DBGMSG("index=0x%lx\n", page->index); | 614 | EXOFS_DBGMSG2("index=0x%lx\n", page->index); |
| 615 | page_cache_release(page); | 615 | page_cache_release(page); |
| 616 | return; | 616 | return; |
| 617 | } | 617 | } |
| 618 | EXOFS_DBGMSG("that_locked_page index=0x%lx\n", | 618 | EXOFS_DBGMSG2("that_locked_page index=0x%lx\n", |
| 619 | ZERO_PAGE(0) == page ? -1 : page->index); | 619 | ZERO_PAGE(0) == page ? -1 : page->index); |
| 620 | } | 620 | } |
| 621 | 621 | ||
| @@ -1018,7 +1018,7 @@ static int _do_truncate(struct inode *inode, loff_t newsize) | |||
| 1018 | if (likely(!ret)) | 1018 | if (likely(!ret)) |
| 1019 | truncate_setsize(inode, newsize); | 1019 | truncate_setsize(inode, newsize); |
| 1020 | 1020 | ||
| 1021 | EXOFS_DBGMSG("(0x%lx) size=0x%llx ret=>%d\n", | 1021 | EXOFS_DBGMSG2("(0x%lx) size=0x%llx ret=>%d\n", |
| 1022 | inode->i_ino, newsize, ret); | 1022 | inode->i_ino, newsize, ret); |
| 1023 | return ret; | 1023 | return ret; |
| 1024 | } | 1024 | } |
| @@ -1108,7 +1108,7 @@ static int exofs_get_inode(struct super_block *sb, struct exofs_i_info *oi, | |||
| 1108 | 1108 | ||
| 1109 | ret = extract_attr_from_ios(ios, &attrs[0]); | 1109 | ret = extract_attr_from_ios(ios, &attrs[0]); |
| 1110 | if (ret) { | 1110 | if (ret) { |
| 1111 | EXOFS_ERR("%s: extract_attr of inode_data failed\n", __func__); | 1111 | EXOFS_ERR("%s: extract_attr 0 of inode failed\n", __func__); |
| 1112 | goto out; | 1112 | goto out; |
| 1113 | } | 1113 | } |
| 1114 | WARN_ON(attrs[0].len != EXOFS_INO_ATTR_SIZE); | 1114 | WARN_ON(attrs[0].len != EXOFS_INO_ATTR_SIZE); |
| @@ -1116,7 +1116,7 @@ static int exofs_get_inode(struct super_block *sb, struct exofs_i_info *oi, | |||
| 1116 | 1116 | ||
| 1117 | ret = extract_attr_from_ios(ios, &attrs[1]); | 1117 | ret = extract_attr_from_ios(ios, &attrs[1]); |
| 1118 | if (ret) { | 1118 | if (ret) { |
| 1119 | EXOFS_ERR("%s: extract_attr of inode_data failed\n", __func__); | 1119 | EXOFS_ERR("%s: extract_attr 1 of inode failed\n", __func__); |
| 1120 | goto out; | 1120 | goto out; |
| 1121 | } | 1121 | } |
| 1122 | if (attrs[1].len) { | 1122 | if (attrs[1].len) { |
| @@ -1131,7 +1131,7 @@ static int exofs_get_inode(struct super_block *sb, struct exofs_i_info *oi, | |||
| 1131 | 1131 | ||
| 1132 | ret = extract_attr_from_ios(ios, &attrs[2]); | 1132 | ret = extract_attr_from_ios(ios, &attrs[2]); |
| 1133 | if (ret) { | 1133 | if (ret) { |
| 1134 | EXOFS_ERR("%s: extract_attr of inode_data failed\n", __func__); | 1134 | EXOFS_ERR("%s: extract_attr 2 of inode failed\n", __func__); |
| 1135 | goto out; | 1135 | goto out; |
| 1136 | } | 1136 | } |
| 1137 | if (attrs[2].len) { | 1137 | if (attrs[2].len) { |
