From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64E39274FD1 for ; Mon, 25 May 2026 22:57:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779749837; cv=none; b=rVKiLZ5Fcc9DxHms91opcaAQPsIIV4L+84acpm7GSAKuCGvYJt+jrr4Kwo+9UczJt9ymUOShGdNKBWGqtZ++8QXch1Tq51d5ZorNYr4lLP9zn/y4oMkH13SixyhgJJDkMt//gY2P/cUQAu4R2hM/qbMpxaCU10dYV6Yr5f1K2ZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779749837; c=relaxed/simple; bh=xdWAdCG0W4uZtuCTHPX/YYXBeyUnpOl9c/3K3ZXRFb0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pI3nvXAL9Wbaql/+aOuViuRbvaePgo9KXNIc/pvJ8SOpdirxE30h9B8xXMQzNXtIwnepWOv66G6FyhVVJX78oplUEtgbDuF1MduRnOwFlLMhse3JrX9STMRoIYBaXodL9+tUZsknpVksyV8RsY/uT40NaBhdkktRxkIYVaVJ7tE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=LbE68e+u; arc=none smtp.client-ip=91.218.175.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="LbE68e+u" Date: Tue, 26 May 2026 06:57:03 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1779749829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GvAHNAxC6rDU5yUwP8byqCJ4phTBIMQ7rInOdnEr2YA=; b=LbE68e+uwRgBhWHdTgPTc2kfRUtHSQ7kfDDN5iimq8ExxqmwnnDaC8GhsR1Wo0iimoE1CO XcdpFk16wzEkwVI0RHqWjb/g7IxTrlXxapmw24TPeCxMiTZucuHMmxxlNbOU1EDPxTiiPV MfP3/sV5DVZwc3MW/yi7xaAeppM2Y3Q= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Baoquan He To: Youngjun Park Cc: akpm@linux-foundation.org, chrisl@kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kasong@tencent.com, hannes@cmpxchg.org, mhocko@kernel.org, roman.gushchin@linux.dev, shakeel.butt@linux.dev, muchun.song@linux.dev, shikemeng@huaweicloud.com, nphamcs@gmail.com, bhe@redhat.com, baohua@kernel.org, gunho.lee@lge.com, taejoon.song@lge.com, hyungjun.cho@lge.com, mkoutny@suse.com, baver.bae@lge.com, matia.kim@lge.com Subject: Re: [PATCH v6 1/4] mm: swap: introduce swap tier infrastructure Message-ID: References: <20260421055323.940344-1-youngjun.park@lge.com> <20260421055323.940344-2-youngjun.park@lge.com> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260421055323.940344-2-youngjun.park@lge.com> X-Migadu-Flow: FLOW_OUT On 04/21/26 at 02:53pm, Youngjun Park wrote: ...snip... > +bool swap_tiers_validate(void) > +{ > + struct swap_tier *tier; > + > + /* > + * Initial setting might not cover DEF_SWAP_PRIO. > + * Swap tier must cover the full range (DEF_SWAP_PRIO to SHRT_MAX). > + */ If so, do we need check if the upmost boundary SHRT_MAX is covered? > + if (swap_tier_is_active()) { > + tier = list_last_entry(&swap_tier_active_list, > + struct swap_tier, list); > + > + if (tier->prio != DEF_SWAP_PRIO) > + return false; > + } > + > + return true; > +} ...snip...