Skip to content

Commit c555722

Browse files
committed
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()
2 parents 61f3e82 + 8cc0072 commit c555722

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/xfs/xfs_inode.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2634,8 +2634,10 @@ xfs_ifree_cluster(
26342634
error = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno,
26352635
mp->m_bsize * igeo->blocks_per_cluster,
26362636
XBF_UNMAPPED, &bp);
2637-
if (error)
2637+
if (error) {
2638+
xfs_perag_put(pag);
26382639
return error;
2640+
}
26392641

26402642
/*
26412643
* This buffer may not have been correctly initialised as we

0 commit comments

Comments
 (0)