diff options
author | Hans Holmberg <Hans.Holmberg@wdc.com> | 2025-09-01 10:52:05 +0000 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2025-09-16 12:30:41 +0200 |
commit | 8e2cdd8e18ff5073ad76ab2220910001eae39398 (patch) | |
tree | 812ae5de78a341271d8e6ac7497e808acbd15188 /fs/xfs | |
parent | 0301dae732a5402a68fdb8d8461b97da6b9bccc6 (diff) |
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@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_zone_alloc.c | 8 |
1 files changed, 1 insertions, 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] = { |