Commit c5557227 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'xfs-5.8-merge-9' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux

Pull xfs fix from Darrick Wong:
 "We've settled down into the bugfix phase; this one fixes a resource
  leak on an error bailout path"

* tag 'xfs-5.8-merge-9' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
  xfs: Add the missed xfs_perag_put() for xfs_ifree_cluster()
parents 61f3e825 8cc00724
...@@ -2634,8 +2634,10 @@ xfs_ifree_cluster( ...@@ -2634,8 +2634,10 @@ xfs_ifree_cluster(
error = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno, error = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno,
mp->m_bsize * igeo->blocks_per_cluster, mp->m_bsize * igeo->blocks_per_cluster,
XBF_UNMAPPED, &bp); XBF_UNMAPPED, &bp);
if (error) if (error) {
xfs_perag_put(pag);
return error; return error;
}
/* /*
* This buffer may not have been correctly initialised as we * This buffer may not have been correctly initialised as we
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment