xfs: Add the missed xfs_perag_put() for xfs_ifree_cluster()
authorChuhong Yuan <hslester96@gmail.com>
Wed, 3 Jun 2020 16:27:28 +0000 (09:27 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 9 Jun 2020 03:57:03 +0000 (20:57 -0700)
commit8cc0072469723459dc6bd7beff81b2b3149f4cf4
tree53e5e11aea20a9cfbead9ed7a0a5a589e310bf73
parent6dcde60efd946e38fac8d276a6ca47492103e856
xfs: Add the missed xfs_perag_put() for xfs_ifree_cluster()

xfs_ifree_cluster() calls xfs_perag_get() at the beginning, but forgets to
call xfs_perag_put() in one failed path.
Add the missed function call to fix it.

Fixes: ce92464c180b ("xfs: make xfs_trans_get_buf return an error code")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_inode.c