diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2012-08-23 15:37:59 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2012-09-24 10:47:20 +0100 |
commit | 9e733d3923fb0e4eeae7b827019332d246576a22 (patch) | |
tree | 37fc39212545c6bc3c2de8f0293cb9952802f1e8 /mm/msync.c | |
parent | 137834a696fd51ef8c710a0ad854b585027c7df0 (diff) | |
download | op-kernel-dev-9e733d3923fb0e4eeae7b827019332d246576a22.zip op-kernel-dev-9e733d3923fb0e4eeae7b827019332d246576a22.tar.gz |
GFS2: Improve block reservation tracing
This patch improves the tracing of block reservations by
removing some corner cases and also providing more useful
detail in the traces.
A new field is added to the reservation structure to contain
the inode number. This is used since in certain contexts it is
not possible to access the inode itself to obtain this information.
As a result we can then display the inode number for all tracepoints
and also in case we dump the resource group.
The "del" tracepoint operation has been removed. This could be called
with the reservation rgrp set to NULL. That resulted in not printing
the device number, and thus making the information largely useless
anyway. Also, the conditional on the rgrp being NULL can then be
removed from the tracepoint. After this change, all the block
reservation tracepoint calls will be called with the rgrp information.
The existing ins,clm and tdel calls to the block reservation tracepoint
are sufficient to track the entire life of the block reservation.
In gfs2_block_alloc() the error detection is updated to print out
the inode number of the problematic inode. This can then be compared
against the information in the glock dump,tracepoints, etc.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'mm/msync.c')
0 files changed, 0 insertions, 0 deletions