Skip to content

Commit 8e2cdd8

Browse files
yhrcmaiolino
authored andcommitted
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>
1 parent 0301dae commit 8e2cdd8

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

fs/xfs/xfs_zone_alloc.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -512,17 +512,11 @@ static const unsigned int
512512
xfs_zoned_hint_score[WRITE_LIFE_HINT_NR][WRITE_LIFE_HINT_NR] = {
513513
[WRITE_LIFE_NOT_SET] = {
514514
[WRITE_LIFE_NOT_SET] = XFS_ZONE_ALLOC_OK,
515-
[WRITE_LIFE_NONE] = XFS_ZONE_ALLOC_OK,
516-
[WRITE_LIFE_SHORT] = XFS_ZONE_ALLOC_OK,
517515
},
518516
[WRITE_LIFE_NONE] = {
519-
[WRITE_LIFE_NOT_SET] = XFS_ZONE_ALLOC_OK,
520-
[WRITE_LIFE_NONE] = XFS_ZONE_ALLOC_GOOD,
521-
[WRITE_LIFE_SHORT] = XFS_ZONE_ALLOC_GOOD,
517+
[WRITE_LIFE_NONE] = XFS_ZONE_ALLOC_OK,
522518
},
523519
[WRITE_LIFE_SHORT] = {
524-
[WRITE_LIFE_NOT_SET] = XFS_ZONE_ALLOC_GOOD,
525-
[WRITE_LIFE_NONE] = XFS_ZONE_ALLOC_GOOD,
526520
[WRITE_LIFE_SHORT] = XFS_ZONE_ALLOC_GOOD,
527521
},
528522
[WRITE_LIFE_MEDIUM] = {

0 commit comments

Comments
 (0)