• Brian Foster's avatar
    xfs: clean up xfs_trans_brelse() · 23420d05
    Brian Foster authored
    xfs_trans_brelse() is a bit of a historical mess, similar to
    xfs_buf_item_unlock(). It is unnecessarily verbose, has snippets of
    commented out code, inconsistency with regard to stale items, etc.
    
    Clean up xfs_trans_brelse() to use similar logic and flow as
    xfs_buf_item_unlock() with regard to bli reference count handling.
    This patch makes no functional changes, but facilitates further
    refactoring of the common bli reference count handling code.
    Signed-off-by: default avatarBrian Foster <bfoster@redhat.com>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
    
    23420d05
xfs_trans_buf.c 21.1 KB