summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_qm.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-11-03 20:18:55 -0800
committerDarrick J. Wong <djwong@kernel.org>2024-11-05 13:38:32 -0800
commitcc0cf84aa7fe249f8c1ff5f6cecf69de9d07b582 (patch)
tree43f988ce3d75689ada060bd490ba0aa0e90c286d /fs/xfs/xfs_qm.c
parent382e275f0e8d09c886ad4cf949e89208463f1ff0 (diff)
xfs: mark quota inodes as metadata files
When we're creating quota files at mount time, make sure to mark them as metadir inodes if appropriate. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_qm.c')
-rw-r--r--fs/xfs/xfs_qm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c
index ec983cca9ada..b94d6f192e72 100644
--- a/fs/xfs/xfs_qm.c
+++ b/fs/xfs/xfs_qm.c
@@ -824,6 +824,8 @@ xfs_qm_qino_alloc(
xfs_trans_cancel(tp);
return error;
}
+ if (xfs_has_metadir(mp))
+ xfs_metafile_set_iflag(tp, *ipp, metafile_type);
}
/*