diff options
author | 2024-11-03 20:18:55 -0800 | |
---|---|---|
committer | 2024-11-05 13:38:32 -0800 | |
commit | cc0cf84aa7fe249f8c1ff5f6cecf69de9d07b582 (patch) | |
tree | 43f988ce3d75689ada060bd490ba0aa0e90c286d | |
parent | xfs: don't count metadata directory files to quota (diff) | |
download | wireguard-linux-cc0cf84aa7fe249f8c1ff5f6cecf69de9d07b582.tar.xz wireguard-linux-cc0cf84aa7fe249f8c1ff5f6cecf69de9d07b582.zip |
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 '')
-rw-r--r-- | fs/xfs/xfs_qm.c | 2 |
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); } /* |