[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250901105128.14987-4-hans.holmberg@wdc.com>
Date: Mon, 1 Sep 2025 10:52:05 +0000
From: Hans Holmberg <Hans.Holmberg@....com>
To: "linux-xfs@...r.kernel.org" <linux-xfs@...r.kernel.org>
CC: Carlos Maiolino <cem@...nel.org>, Dave Chinner <david@...morbit.com>,
"Darrick J . Wong" <djwong@...nel.org>, hch <hch@....de>,
"linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, Hans Holmberg
<Hans.Holmberg@....com>
Subject: [PATCH 3/3] xfs: adjust the hint based zone allocation policy
As we really can't make any general assumptions about files that don't
have any life time hint set or are set to "NONE", adjust the allocation
policy to avoid co-locating data from those files with files with a set
life time.
Signed-off-by: Hans Holmberg <hans.holmberg@....com>
---
fs/xfs/xfs_zone_alloc.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/fs/xfs/xfs_zone_alloc.c b/fs/xfs/xfs_zone_alloc.c
index ff24769b8870..23a027387933 100644
--- a/fs/xfs/xfs_zone_alloc.c
+++ b/fs/xfs/xfs_zone_alloc.c
@@ -512,17 +512,11 @@ static const unsigned int
xfs_zoned_hint_score[WRITE_LIFE_HINT_NR][WRITE_LIFE_HINT_NR] = {
[WRITE_LIFE_NOT_SET] = {
[WRITE_LIFE_NOT_SET] = XFS_ZONE_ALLOC_OK,
- [WRITE_LIFE_NONE] = XFS_ZONE_ALLOC_OK,
- [WRITE_LIFE_SHORT] = XFS_ZONE_ALLOC_OK,
},
[WRITE_LIFE_NONE] = {
- [WRITE_LIFE_NOT_SET] = XFS_ZONE_ALLOC_OK,
- [WRITE_LIFE_NONE] = XFS_ZONE_ALLOC_GOOD,
- [WRITE_LIFE_SHORT] = XFS_ZONE_ALLOC_GOOD,
+ [WRITE_LIFE_NONE] = XFS_ZONE_ALLOC_OK,
},
[WRITE_LIFE_SHORT] = {
- [WRITE_LIFE_NOT_SET] = XFS_ZONE_ALLOC_GOOD,
- [WRITE_LIFE_NONE] = XFS_ZONE_ALLOC_GOOD,
[WRITE_LIFE_SHORT] = XFS_ZONE_ALLOC_GOOD,
},
[WRITE_LIFE_MEDIUM] = {
--
2.34.1
Powered by blists - more mailing lists