From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 4E5733F4854 for ; Fri, 7 Aug 2026 22:00:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786140058; cv=none; b=kk2zt08KYDrxYlZ9iG06xTIxkyH3rzhDCizbuwf9Ol+Y8aLeo4ie5zJfFtGyQNoU/kD/yRJKar6Dmn/BeOPkr56mvX57KsFoe2N5dALf4IbTrgW2ZfAiY2QRtW6KlWCDGvA6IxXmR9brvAKGoDq4M+2GZemMpUszGL2/nRBVlow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786140058; c=relaxed/simple; bh=KIaRGXA33WzC64jZiXtA5rCMykL/cRNMuTALavGYHXc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iqE+BW2fhPcPsXLmKM2N593jBCUXqP85Rvr7Dh1RYru0l+dvKXwlCyjUa56xTvZXPivux0kZSkTNGIgtyqWBWWXvXwmQt0Mp3j6StKDKD1O/NrlzZZkfcGAtbvMfBZQdBS/CrVqN54kwmL+XRxN4viopKKID/HyQ0IAQD6tb1v0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=r0coSWH5; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="r0coSWH5" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=re5PFQ5drpCxk/MZec5F79BMNzk+R9n11UoBsMD2zNs=; b=r0coSWH50wwV9u09UL/xbqyB1V JhRcSBKeq+4HRHmx4B8aA6bFJtj1rDV7wMh3SxW2D2fqeu74KKGeOEnl9M3OhSgkOSkxbDSD1EWLr Ia0BI/FweSZRmTskiyywsfUcoKgqoVMpPo7yOQ1N3AjPfTjx6RHT+Btyvpn6S/U+x6hT4v1qPR2AA xl7qZRm9Z91qNMRmxt/yMf397DF+wDypsqMCiqpEA2KbkuXzo0A6wQg8W2gHWJoPbIJ5b8f3qP2y3 5H5hG1Uh2/jANLO++Ok5Xl6PWT776AcaChqhV1eUluWtTcHGqOoVXdvVcYE0q3td8XZxWiVVkHaUw MQ8lAWhg==; Received: from willy by casper.infradead.org with local (Exim 4.99.1 #2 (Red Hat Linux)) id 1wsPeP-0000000DNox-2Kyh; Fri, 07 Aug 2026 18:50:37 +0000 Date: Fri, 7 Aug 2026 19:50:37 +0100 From: Matthew Wilcox To: Tal Zussman Cc: Andrew Morton , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Baoquan He , Barry Song , Youngjun Park , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Christoph Hellwig , Johannes Weiner , Yosry Ahmed , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] mm/page_io: use swap entries directly in zeromap helpers Message-ID: References: <20260806-b4-page_io-folios-v1-0-0899bac3b826@columbia.edu> <20260806-b4-page_io-folios-v1-3-0899bac3b826@columbia.edu> 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: <20260806-b4-page_io-folios-v1-3-0899bac3b826@columbia.edu> On Thu, Aug 06, 2026 at 06:55:35PM -0400, Tal Zussman wrote: > Increment swp_entry_t::val directly instead of recomputing each entry > with page_swap_entry(). This removes the last struct page usage in > page_io.c and saves one call to compound_head() per page. > > Signed-off-by: Tal Zussman Reviewed-by: Matthew Wilcox (Oracle)