]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_repair: don't leak the rootdir inode when orphanage already exists
authorDarrick J. Wong <djwong@kernel.org>
Tue, 18 Jun 2024 23:22:07 +0000 (16:22 -0700)
committerCarlos Maiolino <cem@kernel.org>
Mon, 22 Jul 2024 09:20:53 +0000 (11:20 +0200)
commit6f28c3b309193994f07ec0430e944b58bc64e55a
tree48d2326c76324c062facbf163e0ddce00a412585
parent42fc61ebd061ffc63a0302a8422ed21f67e38b5f
xfs_repair: don't leak the rootdir inode when orphanage already exists

If repair calls mk_orphanage and the /lost+found directory already
exists, we need to irele the root directory before exiting the function.

Fixes: 6c39a3cbda32 ("Don't trash lost+found in phase 4 Merge of master-melb:xfs-cmds:29144a by kenmcd.")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/phase6.c