]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce384e89141ec490ed3478fceec973d6f2d21982
tree53e5e11aea20a9cfbead9ed7a0a5a589e310bf73
parent276f6a68431f8e393acc83804bd0994a387608e2
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: 4182f5c50b5a ("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