From: Darrick J. Wong Date: Mon, 4 Nov 2024 04:18:55 +0000 (-0800) Subject: xfs: mark quota inodes as metadata files X-Git-Tag: microblaze-v6.16~597^2~7^2~13 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=cc0cf84aa7fe249f8c1ff5f6cecf69de9d07b582;p=linux-2.6-microblaze.git 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 Reviewed-by: Christoph Hellwig --- 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); } /*