xfs: clean up xfs_trans_brelse()
authorBrian Foster <bfoster@redhat.com>
Sat, 29 Sep 2018 03:45:02 +0000 (13:45 +1000)
committerDave Chinner <david@fromorbit.com>
Sat, 29 Sep 2018 03:45:02 +0000 (13:45 +1000)
commit23420d05e67d23728e116321c4afe084ebfa6427
treec6db7f7cbbfa20a23027f39dc604d5d37f09abad
parentd9183105caa926522a4bc8a40e162de7019f1a21
xfs: clean up xfs_trans_brelse()

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: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_trans_buf.c