mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
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>
This commit is contained in:
parent
0301dae732
commit
8e2cdd8e18
|
|
@ -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] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user