Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174353
b: refs/heads/master
c: fe33cc1
h: refs/heads/master
i:
  174351: 962fa87
v: v3
  • Loading branch information
Boaz Harrosh committed Dec 10, 2009
1 parent 67ac5ca commit 63dc2f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58311c43dfc3997a1f7b5883f827443f34108f8f
refs/heads/master: fe33cc1ee170c0e3b47ab9cbac07083b3446961c
12 changes: 7 additions & 5 deletions trunk/fs/exofs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
# define EXOFS_DEBUG_OBJ_ISIZE 1
#endif

#define EXOFS_DBGMSG2(M...) do {} while (0)

struct page_collect {
struct exofs_sb_info *sbi;
struct request_queue *req_q;
Expand Down Expand Up @@ -198,7 +200,7 @@ static int __readpages_done(struct osd_request *or, struct page_collect *pcol,
else
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,
page_stat ? "bad_bytes" : "good_bytes");

Expand Down Expand Up @@ -370,12 +372,12 @@ static int readpage_strip(void *data, struct page *page)
if (len != PAGE_CACHE_SIZE)
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);

ret = pcol_add_page(pcol, page, len);
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",
page, len, pcol->nr_pages, pcol->length);

Expand Down Expand Up @@ -482,7 +484,7 @@ static void writepages_done(struct osd_request *or, void *p)

update_write_page(page, page_stat);
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);

length += bvec->bv_len;
Expand Down Expand Up @@ -609,7 +611,7 @@ static int writepage_strip(struct page *page,
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);

ret = pcol_add_page(pcol, page, len);
Expand Down

0 comments on commit 63dc2f5

Please sign in to comment.