]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0fb098ac27cc62bd1690cb547ee324e7c790a535
treec6db7f7cbbfa20a23027f39dc604d5d37f09abad
parentea45ba096a43d82643666262df2587c5ad5ff567
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