linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans Holmberg <Hans.Holmberg@wdc.com>
To: "linux-xfs@vger.kernel.org" <linux-xfs@vger.kernel.org>
Cc: Carlos Maiolino <cem@kernel.org>,
	Dave Chinner <david@fromorbit.com>,
	"Darrick J . Wong" <djwong@kernel.org>, hch <hch@lst.de>,
	"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Hans Holmberg <Hans.Holmberg@wdc.com>
Subject: [PATCH 3/3] xfs: adjust the hint based zone allocation policy
Date: Mon, 1 Sep 2025 10:52:05 +0000	[thread overview]
Message-ID: <20250901105128.14987-4-hans.holmberg@wdc.com> (raw)
In-Reply-To: <20250901105128.14987-1-hans.holmberg@wdc.com>

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>
---
 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

  parent reply	other threads:[~2025-09-01 10:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-01 10:52 [PATCH 0/3] xfs: hint based zone allocation improvements Hans Holmberg
2025-09-01 10:52 ` [PATCH 1/3] fs: add an enum for number of life time hints Hans Holmberg
2025-09-02  5:41   ` hch
2025-09-02  8:47     ` Hans Holmberg
2025-09-02 16:12     ` Bart Van Assche
2025-09-01 10:52 ` Hans Holmberg [this message]
2025-09-02  5:42   ` [PATCH 3/3] xfs: adjust the hint based zone allocation policy hch
2025-09-01 10:52 ` [PATCH 2/3] xfs: refactor hint based zone allocation Hans Holmberg
2025-09-02  5:41   ` hch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250901105128.14987-4-hans.holmberg@wdc.com \
    --to=hans.holmberg@wdc.com \
    --cc=cem@kernel.org \
    --cc=david@fromorbit.com \
    --cc=djwong@kernel.org \
    --cc=hch@lst.de \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).