xfs: add the xlog_grant_head structure
Add a new data structure to allow sharing code between the log grant and regrant code. Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:

committed by
Ben Myers

parent
14a7235fba
commit
28496968a6
@@ -782,12 +782,12 @@ DECLARE_EVENT_CLASS(xfs_loggrant_class,
|
||||
__entry->curr_res = tic->t_curr_res;
|
||||
__entry->unit_res = tic->t_unit_res;
|
||||
__entry->flags = tic->t_flags;
|
||||
__entry->reserveq = list_empty(&log->l_reserveq);
|
||||
__entry->writeq = list_empty(&log->l_writeq);
|
||||
xlog_crack_grant_head(&log->l_grant_reserve_head,
|
||||
__entry->reserveq = list_empty(&log->l_reserve_head.waiters);
|
||||
__entry->writeq = list_empty(&log->l_write_head.waiters);
|
||||
xlog_crack_grant_head(&log->l_reserve_head.grant,
|
||||
&__entry->grant_reserve_cycle,
|
||||
&__entry->grant_reserve_bytes);
|
||||
xlog_crack_grant_head(&log->l_grant_write_head,
|
||||
xlog_crack_grant_head(&log->l_write_head.grant,
|
||||
&__entry->grant_write_cycle,
|
||||
&__entry->grant_write_bytes);
|
||||
__entry->curr_cycle = log->l_curr_cycle;
|
||||
|
Reference in New Issue
Block a user