]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Improve block reservation tracing
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 23 Aug 2012 14:37:59 +0000 (15:37 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 23 Aug 2012 14:37:59 +0000 (15:37 +0100)
commit246c5e27c0603f73f68834ba35a92b37ef48e98f
treed1d04b793aff83e8bae52899326f145ad4f4d275
parent3f91ce2ae13016a66fc011c0a18909ec9d76f095
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>
fs/gfs2/incore.h
fs/gfs2/rgrp.c
fs/gfs2/trace_gfs2.h