Re: [PATCH] btrfs: trace: Allow trace_qgroup_update_counters() to record old rfer/excl value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 30, 2018 at 03:04:44PM +0800, Qu Wenruo wrote:
> Origin trace_qgroup_update_counters() only records qgroup id and its
> reference count change.
> 
> It's good enough to debug qgroup accounting change, but when rescan race
> is involved, it's pretty hard to distinguish which modification belongs
> to which rescan.
> 
> So add old_rfer and old_excl trace output to help distinguishing
> different rescan instance.
> (Different rescan instance should reset its qgroup->rfer to 0)
> 
> For trace event parameter, it just changes from u64 qgroup_id to struct
> btrfs_qgroup *qgroup, so number of parameters is not changed at all.
> 
> Signed-off-by: Qu Wenruo <wqu@xxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux