diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:15:50 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-09 19:08:06 -0800 |
commit | f4fa09c97f8eb0eedac361988e0f0ac54a13ce55 (patch) | |
tree | 40596c71f43feb6f9e0ba667a07270d054ac057a | |
parent | e4a0eb7a44b12915967c70ddbd349053c8dca217 (diff) |
xfs: apply noalloc mode to inode allocations toonoalloc-ags_2022-11-09
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 f8c475fa63af..e08e76dc00a3 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c @@ -1052,6 +1052,7 @@ xfs_dialloc_ag_inobt( ASSERT(pag->pagi_init); ASSERT(pag->pagi_inodeok); + ASSERT(!pag->pagf_noalloc); ASSERT(pag->pagi_freecount > 0); restart_pagno: @@ -1678,7 +1679,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) { |