]> 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)
commitae4beadb6b01c0b0443a9edfcd0e8a2e9d663c30
tree53e5e11aea20a9cfbead9ed7a0a5a589e310bf73
parent765526490106cc114034cb2d1bbdcb1bda808341
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: 145b69e6f339 ("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