summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorLiu Bo <liubo2009@cn.fujitsu.com>2012-03-29 09:57:44 -0400
committerChris Mason <chris.mason@oracle.com>2012-03-29 09:57:44 -0400
commit2bcc0328c3a043880796a602c75fbeb1537aa1e1 (patch)
treeed18c3244abeda587b56498ca5da5609f3555d99 /fs/btrfs/transaction.c
parent7ca4be45a0255ac8f08c05491c6add2dd87dd4f8 (diff)
downloadtalos-op-linux-2bcc0328c3a043880796a602c75fbeb1537aa1e1.tar.gz
talos-op-linux-2bcc0328c3a043880796a602c75fbeb1537aa1e1.zip
Btrfs: show useful info in space reservation tracepoint
o For space info, the type of space info is useful for debug. o For transaction handle, its transid is useful. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 63f835aa9788..8da29e8e4de1 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -337,8 +337,7 @@ again:
if (num_bytes) {
trace_btrfs_space_reservation(root->fs_info, "transaction",
- (u64)(unsigned long)h,
- num_bytes, 1);
+ h->transid, num_bytes, 1);
h->block_rsv = &root->fs_info->trans_block_rsv;
h->bytes_reserved = num_bytes;
}
OpenPOWER on IntegriCloud