From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-00364e01.pphosted.com (mx0b-00364e01.pphosted.com [148.163.139.74]) (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 6809A3B7B9D for ; Mon, 10 Aug 2026 11:19:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.139.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786360773; cv=none; b=e+wElZw6IZ+mGdtDaY3sdGL0EE9uAlud3gLsE7bLM2VkTXC+WOYCt2noG3GwjRRqEq+LU314OTFK+ZRJkZv6herZ+fyYwxBb9TdCBL55RAt6eHRDyh+jgYrodDPbCahG7/EiScvh1dQhbEvKG/waa5TlAzWaebByfpBH2rYc6zs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786360773; c=relaxed/simple; bh=9aGEz7G2HgN62qDMp7v7mLIdYpvj9i82S8NFAeh83go=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pmTouCpccnGrAHhKRDmLbDGUNFVToKhudxqscZcHUktfk5Lh63MS9pRthgYQwidqaCAouHf7KTKESv9ccMUXjJgihcpUWxJEpKClh4o1LvlBNuvTDK6tRbcXYG+hf/DTDUB+zCwjjNS/k/esBLUjmXWi6HEfWGmTs3IRRZeEVZo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=columbia.edu; spf=pass smtp.mailfrom=columbia.edu; dkim=pass (2048-bit key) header.d=columbia.edu header.i=@columbia.edu header.b=NGuzIy+X; arc=none smtp.client-ip=148.163.139.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=columbia.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=columbia.edu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=columbia.edu header.i=@columbia.edu header.b="NGuzIy+X" Received: from pps.filterd (m0167075.ppops.net [127.0.0.1]) by mx0b-00364e01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67AAXODj2622241 for ; Mon, 10 Aug 2026 07:19:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=columbia.edu; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pps01; bh=wjTQ G/kj+zvMnDWnzeIhtQ5wAYbdDSZ2K9/KavcTJP8=; b=NGuzIy+Xfvni6HvhWsPm u/CD93BSjqeYLmOnchy/SUoT1kUkGi7gZnadvjZ1Nknr2lEaLB4tbO9Xtrp4IBPl vH2+C0PXLo7mF9QU/MNbZjV1uF4Tn1MVHJiL8IduSBSjugv/Dth+3fBxVcUNEfmZ 3SMzDGGW4SV3ZKwGCaPa+Fx9AiU0oe7CQeE5Vf8/VR8+OWgIxFwjqoN8JUJK8hAr ZIFSIuPjZ8mFdFN3zKYMfGOC+hyBINTEN+rIpf7silRr7l0sjcUBkTTnNN8HPpVa 4S/f83i7/peCzdNd9Tvmt2ISBVOU6P7+6RkMFS5Mt8sgfPhfIvxx32P5evV5V4oc Zg== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0b-00364e01.pphosted.com (PPS) with ESMTPS id 4fy2a49ryk-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 10 Aug 2026 07:19:29 -0400 (EDT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-52cd0374265so34685901cf.1 for ; Mon, 10 Aug 2026 04:19:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786360769; x=1786965569; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=wjTQG/kj+zvMnDWnzeIhtQ5wAYbdDSZ2K9/KavcTJP8=; b=FCWxQdvnEFkA7Me2mnjTTraTlttsQ/NTa/I/UYhj1A7npG2HUXI19IQdhcQ1QNUiGl rnkr2zUwjlVcG3xRYCwpMdpkpFXTU6t5L/43Jbu/cuAEFId5xgN7nB97v8Dp8msea5f3 c1ZlNm3W4PyYlf4XIxt440VK1WDt+G2lMwoZIWP6V+TsN3/lYyjOS8T2IyfuzPCkcowe HD7Gfz+GntJEY1K5G+MnIl0GmGOnNRbd0lxx6pq7C1TSPX8Ks6nVnEa4bT5lYujwzf+m j+JqvgVgozVY4JIOWYe0KBBFprHQm1/MFympTV/obG9Te/nuID+AyA4oWR5WcNbfG57m T7aA== X-Forwarded-Encrypted: i=1; AHgh+RqPF4Fx+sqAeF1HnNSlCBXcGTZknrqI5XlEdtlX7QxoJpjCJ/HmPzB4Top/gCjpnFk3t2gbHQ+WuMaugpY=@vger.kernel.org X-Gm-Message-State: AOJu0YzybXISo0KlwxIp00+cgP6HarBSAbOqksCEG1b6EYcoqCELIyM9 7Q94WLDmO14y9oyQKiwdX294Glrhnd1KQhdQF++QaMjd04dh4VGA2wjpfZqc8sxEmHYgzzZVG+7 1SYqATSLAQKfBDuginUl18ToZI0lukcz7PN9NIKC9jaeWE1TFJvV3r9Ngft00fZs/NsBx1jyC X-Gm-Gg: AR+sD13+7lQspAElLxBo207Tr9RQLKMrx/JuSj31OVRTwIraTniYzSD3lD6plW+631j ClPjANzSPD+/VTY3TjpNE8tkXFnxs8PCWnYqQ6Tu+H8vS3nROYNV8Nneu2AxLwTbzwB+25mIBbt 5mK9LKwrGlzFRgK90Y4X3Cy4xfuTXRdIUjnEmOZxNMNWpnyhTP+eb6cA7NLrwMZgR0ZMS04lWZr wp163AcKXlJ+iCXWEco55dM1bouRWundeBqzB7CcjLhrD0lFKdDZM7nkVtS26pS0mVmeMcINMWF OcgtudDUjCxYAQ41eSoOI7Kv4vfHX37SVuddDPg4Cm4rPubl3mrucGw6ON7fjgX6YW/452SZZrb W7uwZRsIdKoXmtv+VwSojAAe4oTswlLPNftfQqysyhHyPrVR+qBHUITQtWqAU/EpA X-Received: by 2002:a05:622a:2b0b:b0:50b:48e3:47a7 with SMTP id d75a77b69052e-52d2096d7e6mr242717361cf.18.1786360769282; Mon, 10 Aug 2026 04:19:29 -0700 (PDT) X-Received: by 2002:a05:622a:2b0b:b0:50b:48e3:47a7 with SMTP id d75a77b69052e-52d2096d7e6mr242716581cf.18.1786360768831; Mon, 10 Aug 2026 04:19:28 -0700 (PDT) Received: from ?IPV6:2a00:a040:199:782e:7d00:b463:d29c:a508? ([2a00:a040:199:782e:7d00:b463:d29c:a508]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48002145a2bsm34117401f8f.4.2026.08.10.04.19.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Aug 2026 04:19:27 -0700 (PDT) Message-ID: Date: Mon, 10 Aug 2026 14:19:24 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 6/6] mm/swap: rename __swap_writepage() to __swap_writeout() To: Matthew Wilcox , Johannes Weiner 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 , Yosry Ahmed , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20260806-b4-page_io-folios-v1-0-0899bac3b826@columbia.edu> <20260806-b4-page_io-folios-v1-6-0899bac3b826@columbia.edu> Content-Language: en-US From: Tal Zussman In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: v_MNzWAiW2oNmlB7H0pAYFk11E5KKPZd X-Proofpoint-Spam-Info: AW1haW4tMjYwODEwMDA5OSBTYWx0ZWRfX00tXR2PciYKN BxlX2moaFY8vCCz9rcduiDtTXiyT13QDe+YbjsZ6DWjuwrAsRhNJDGDFwBeyZo60WzK4UQWxG95 ishwKEivYkxxatofNot+KNjXPDLfxTQssqze/Fhd6p14sOfoPpJ/ X-Proofpoint-ORIG-GUID: v_MNzWAiW2oNmlB7H0pAYFk11E5KKPZd X-Authority-Analysis: v=2.4 cv=FfkHAp+6 c=1 sm=1 tr=0 ts=6a79b3c2 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=x7bEGLp0ZPQA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Da8U98TiO7q1upZEImrf:22 a=HpS3TJQ9O3Ob1ozEcmik:22 a=zFIWcCKHJakqfXWWRy0A:9 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODEwMDA5OSBTYWx0ZWRfX6FNr1AUjA3Ga DeCsSkicFm8VjBLfoITU5b00CS4ltH42Y9bUGupbzCPuduYBMtMzCQzgl1W1HF0MhoSme37r5Qb 23pA0wVocxbaT8wjiRy6ZV4JR60bbAD0K+C99abclgP3CbuCNB6MpSEf5wd3+qvbpJcsTqwSFuS l1C/UxqKlPhvSgLQ7OSaBrdLx7bHgsRDv1qDORhxDLLMpDcMMj7erN2F7V/49QHgVBqhKDecker vClnn+8wIRHNr4CjrWrgN1PuA7SUboZeN6LVOFd/+m2plVLtt7UspBDNkLkosEUbEtVUVq6bTL1 THgTFhkJvQLCzisxApGnuTn8++F/62qCahDntNKTDDceL358JRIydHdAR7Z+leQ/zidDnwAW6/o JEA3IHD3z+OTd9RiO9j3xYfiX2aREIL3MkFuiT6Ec/U4pVO1g8GLG912gi1l+11QcFxhs3v/bZS Pyds9wB6Smy4nCrXWtg== X-Proofpoint-Virus-Version: vendor=nai engine=6900 definitions=11870 signatures=596817 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=10 adultscore=0 spamscore=0 priorityscore=1501 malwarescore=0 bulkscore=10 impostorscore=10 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608100099 On 8/7/26 3:05 PM, Matthew Wilcox wrote: > On Fri, Aug 07, 2026 at 01:01:08PM -0400, Johannes Weiner wrote: >> On Thu, Aug 06, 2026 at 06:55:38PM -0400, Tal Zussman wrote: >> > Commit 84798514db50 ("mm: Remove swap_writepage() and >> > shmem_writepage()") renamed swap_writepage() to swap_writeout(). Rename >> > __swap_writepage(), which operates on a folio, to match its caller. >> > Update a stale reference to swap_writepage() in swapfile.c as well. >> > >> > Signed-off-by: Tal Zussman >> >> Looking at that commit, I can only guess that pageout() had an >> influence on the swap_writeout() name. >> >> However, on the read side of the page_io.c API, we're following >> swap_read_folio* consistently. >> >> [__]swap_write_folio* would seem more symmetrical? > > I wanted to be sure that filesystem authors see this as something unusual > rather than something they should implement as a counterpart to their > read_folio operation. So it was intentionally asymmetric. I'm open > to discussion of better names, but my hope is that we get closer to the > 'do direct IO' model and shmem doesn't need to swizzle its folios into > the swapcache to get them into the swap system. > This message only came in on my end after I responded to Johannes. I'll leave it as [__]swap_writeout() for now. >> [ At the risk of starting something, should the file itself be >> renamed? swap_rw.c or swap_io.c or something. ] > > I'm not opposed to that either! >