aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Phillips <daniel@tux3.org>2014-02-19 03:51:52 +0900
committerDaniel Phillips <daniel@tux3.org>2014-02-19 03:51:52 +0900
commit27cbf04af7deb83e32ec22d39a5e0a152d8b2143 (patch)
tree26c79634c236cce8bdcd08090fe569855b680e5e
parentb1c5cedb7a92f6ea7cfc9fc5c0d1b35c162d7cec (diff)
downloadlinux-tux3-27cbf04af7deb83e32ec22d39a5e0a152d8b2143.tar.gz
tux3: Make the buffer trace format more consistent
Output the buffer address in the same format for a read as for other buffer operations. This allows easier search through trace logs for events affecting a given buffer. Signed-off-by: Daniel Phillips <d.phillips@partner.samsung.com> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-rw-r--r--fs/tux3/balloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/tux3/balloc.c b/fs/tux3/balloc.c
index 70e890d563d5f6..268117d33257d7 100644
--- a/fs/tux3/balloc.c
+++ b/fs/tux3/balloc.c
@@ -344,8 +344,8 @@ int balloc_find_range(struct sb *sb,
unsigned mapmask = mapsize - 1;
struct buffer_head *buffer;
- trace("find %u blocks in [%Lu+%Lu], segs = %d",
- *blocks, start, range, *segs);
+ trace("find %u blocks in [%Lu/%Lu], segs = %d",
+ *blocks, start, range, *segs);
assert(*blocks > 0);
assert(start < sb->volblocks);
@@ -382,10 +382,10 @@ int balloc_find_range(struct sb *sb,
block_t found = mapbase + offset;
if (*segs && mergable(&seg[*segs - 1], found)) {
- trace("append seg [%Lu+%u]", found, count);
+ trace("append seg [%Lu/%u]", found, count);
seg[*segs - 1].count += count;
} else {
- trace("balloc seg [%Lu+%u]", found, count);
+ trace("balloc seg [%Lu/%u]", found, count);
seg[(*segs)++] = (struct block_segment){
.block = found,
.count = count,
@@ -548,7 +548,7 @@ block_t balloc_one(struct sb *sb)
int bfree(struct sb *sb, block_t start, unsigned blocks)
{
assert(tux3_under_backend(sb));
- trace("bfree extent [%Lu+%u], ", start, blocks);
+ trace("bfree extent [%Lu/%u], ", start, blocks);
return bitmap_test_and_modify(sb, start, blocks, 0);
}