diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2026-09-22 22:58:24 -0700 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-10-05 10:04:42 +0200 |
| commit | 07c73d1f0be610a8c14a2d73ed5cbda8ea9749d7 (patch) | |
| tree | 29cb1e21e2bb99fffa6528e4ab27cf81732ef9f0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 0b9081a774ee7b9dff1e9ac3765b73c1d6bba5b2 (diff) | |
xfs: clean up after failed metafile relinking
Once we start a metadir update to link in a file, we have to commit or
cancel it, just like any other operation. LOLLM pointed out that I
forgot that, so fix it. This fixes a bug in xfs_repair.
However, in commit e80fbe1ad8eff7, we made xfs_metadir_cancel a static
function within xfs_metadir.c, so we can't just add a xfs_metadir_cancel
call to xfs_dqinode_metadir_link.
Instead, create a new xfs_metadir_link_file helper in xfs_metadir.c that
takes only the xfs_metadir_update object, and handles everything from
start to finish. This enables us to make xfs_metadir_commit a static
function too.
Fixes: e80fbe1ad8eff7 ("xfs: use metadir for quota inodes")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
