diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 11:18:03 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-12-15 17:29:19 -0800 |
commit | a9f8b2b59154905f4a88a1c7fdc2cb6af51d09b1 (patch) | |
tree | 77f2d5d472df9bbdee08f838e839a6e975bb6dc7 | |
parent | a3d575d2b91884573628393e234ee6c0781701bd (diff) |
xfs: apply noalloc mode to inode allocations toonoalloc-ags_2021-12-15
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 4f8b0ae839ae..87b94af0bcdd 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) { |