diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:15:50 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:17:19 -0700 |
commit | e0cb8521cb697dea77af6a6daab37c1a767f11fc (patch) | |
tree | 682dc48788a4585ff1de294050bfaaa126300d31 | |
parent | 1027f6f3a8eecc3805caa6c3221df51f407bdc72 (diff) |
xfs: apply noalloc mode to inode allocations toonoalloc-ags_2022-10-14
Don't allow inode allocations from this group if it's marked noalloc.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c index b8b21c63ad7d..c9bab87ae926 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c @@ -1019,6 +1019,7 @@ xfs_dialloc_ag_inobt( ASSERT(pag->pagi_init); ASSERT(pag->pagi_inodeok); + ASSERT(!pag->pagf_noalloc); ASSERT(pag->pagi_freecount > 0); restart_pagno: @@ -1645,7 +1646,7 @@ xfs_dialloc_good_ag( int needspace; int error; - if (!pag->pagi_inodeok) + if (!pag->pagi_inodeok || pag->pagf_noalloc) return false; if (!pag->pagi_init) { |