xfs: mark quota inodes as metadata files
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:18:55 +0000 (20:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:32 +0000 (13:38 -0800)
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>
fs/xfs/xfs_qm.c

index ec983cc..b94d6f1 100644 (file)
@@ -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);
        }
 
        /*