]> 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)
commit48a1ceea7e60db56b8e6c27f4f5126e884e942a0
treec6db7f7cbbfa20a23027f39dc604d5d37f09abad
parent37223907ce9d8d5355a2185dc3f200b4779aea9e
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