scoutfs: add packed extent and bitmap tracing

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2020-01-17 11:21:36 -08:00
committed by Zach Brown
parent 0de6cade19
commit 55fa73f407
2 changed files with 72 additions and 1 deletions
+7 -1
View File
@@ -1085,6 +1085,10 @@ static int alloc_blocks(struct super_block *sb, u64 count, u64 *blkno_ret,
*blkno_ret = blkno;
*count_ret = count;
trace_scoutfs_data_alloc_blocks(sb, broot, bb->base, bb->type, bit,
blkno, count);
out:
kfree(bb);
return ret;
@@ -1113,8 +1117,10 @@ static int free_blocks(struct super_block *sb,
&broot->root, SCOUTFS_BLOCK_BITMAP_LITTLE,
blkno, count);
if (ret == 0)
if (ret == 0) {
le64_add_cpu(&broot->total_free, count);
trace_scoutfs_data_free_blocks(sb, broot, blkno, count);
}
return ret;
}