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: v6.13-rc1~133^2~7^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc0cf84aa7fe249f8c1ff5f6cecf69de9d07b582;p=thirdparty%2Fkernel%2Flinux.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 ec983cca9adae..b94d6f192e725 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); } /*