From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 1AB6D1EF09B for ; Fri, 15 May 2026 06:30:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778826650; cv=none; b=mXTeUv06ZLS41VeZlTUiIbr/XWj+ah99fdMQqLVh7Zkis9gSDJFSWSLGqBF1TAs8eAdzZigHLgyDLoPFXp7WBZ7+wCnTM2w3x0cSBBTn6dvHYpuxv66DoYHP3rUbEsRKwQprhBUY0qAGyg+uMqFmNCOUOqtDGmkQykL6p76NdTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778826650; c=relaxed/simple; bh=MTPWZV4V3plcIf1UYbYgk/dfsz6Z23J4dxp+fdIcme8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LwXxzAt7Xc6mb8ZFBSutXY8kHfACIbTMUqH2R3ENtRr2DE3FZNuXVuEBcRzWBz2sjSon2j2KMUORpMrJ8vq5R9lybuTlYSEScRAugW9PynVXnLeSddx1rcXFyPwM9cOXxx8DH61mi8XRjBuU9fM8VmoSpilvd1mVhzLvABTFsjY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=GmuzAaRj; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="GmuzAaRj" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=shaRST3HQM429A/PY0LfH58c4YMTbb8Gt1FJcn3lHuE=; b=GmuzAaRjEWkM+Q607nMdCFx08D USeBuJttxyYgvpBv0QSWd3wYiHdErvdbrrNoKCi0fClRcGo0ALBYOcKNI8RDCWcgvEU0Ps/eU+wnU Bk3MVGZA9k1wZTN1nP3Qq8wQqwtl879ynTJXjfJ570B6gNU+4+Z5jj/c3R8LP+vT/CFx54XCP3364 xf8Htn2rIvEN6udtI+fkuoDKeFDoPgsPl4f++L25Cd0LXxwTmgt5jhSFiQ3IprKIx/hxK221PlawS w5NtuE/nx3wXWPB/KdkwdLB9w917jXFyAZPdxQ26+KFSRUsZppl6HmyQKbRl5Ondehth80Q5u5fcc EKkrRXzQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.99.1 #2 (Red Hat Linux)) id 1wNm4C-00000007Vx9-2c2a; Fri, 15 May 2026 06:30:36 +0000 Date: Thu, 14 May 2026 23:30:36 -0700 From: Christoph Hellwig To: Baoquan He Cc: Christoph Hellwig , linux-mm@kvack.org, akpm@linux-foundation.org, chrisl@kernel.org, usama.arif@linux.dev, baohua@kernel.org, kasong@tencent.com, nphamcs@gmail.com, shikemeng@huaweicloud.com, youngjun.park@lge.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 2/3] mm/swap: use swap_ops to register swap device's methods Message-ID: References: <20260512104201.716213-1-baoquan.he@linux.dev> <20260512104201.716213-3-baoquan.he@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@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: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, May 13, 2026 at 11:33:50PM +0800, Baoquan He wrote: > This patchset is part I. I posted v1 to collect suggestions, later I > took a leave, then people think the v1 can be merged firstly and helped > to post v2. I later came back and continue to push this part. If you > just found this patch series and come up with those cleanups, could you > wait a moment until we merge this part and part II is posted? I think > the split handling of block and fs in swap you mentioned is super cool, > and is beyond our plan. I've been looking at this a bit more, and I think it is going very much in the wrong direction. I've started drafting a version that moves block to the same model as fs to build up multi-folio bios, which actually allows for a clean abstraction.