From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADA5D3793D2 for ; Fri, 7 Aug 2026 16:49:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786121396; cv=none; b=lqnpl5po4rIc/F6lV7POJAFb95u/yhKIpCkjcMssig+AVXuHdRciJnb/y7/MX931rSfeBJGWPOfP0GzLdJeKe1DRQTenX4FFu8O/Xgoia0g2cIV4kr6ZKdGsnTKeIPtbaL4Vk4k2CU7nW9+nTPT52nBq5qAZiJrgHCVYRNGrptQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786121396; c=relaxed/simple; bh=Yyqxz6F8gmFJqzEM0Nyf/SNOzXna6sTiiOUC9EWHC54=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PqpYoYD+IQM6s8VDQhUYnxMmZHo0UWu6najB1uyX/Bf7ywEWSG7QetuEmqCZD63h82B4BPDkUJCKQK2k7ILGHQ0bylfj7uT9AKr4qQdBN1QrBYjWplc2EMcTYqlNzP3JI4f8oSOiRW/MIW/sE7gH/QByPj9cB1D9oxC4v4//dnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org; spf=pass smtp.mailfrom=cmpxchg.org; dkim=pass (2048-bit key) header.d=cmpxchg.org header.i=@cmpxchg.org header.b=hCuC6/Nm; arc=none smtp.client-ip=209.85.160.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmpxchg.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmpxchg.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cmpxchg.org header.i=@cmpxchg.org header.b="hCuC6/Nm" Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-517dc520840so26057701cf.3 for ; Fri, 07 Aug 2026 09:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg.org; s=google; t=1786121392; x=1786726192; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=SornuVu2NmXRbU5LVfa6yVFqz1q6nG6dUrxGm5KidRc=; b=hCuC6/NmfhxjLYQYCEayUXSlCpBhUPuU997Mkomo5aXCBQt/U0rqX3rhektGE3wZEb /I2FEiAs3UQC1rs3xJ93hnl2Fbd+HoEDL1vE503F+/63FrjDlBxtzHpo9ZET95mrbcBb PlrL11Zkrecp3Gha6TqwISbJiJONs37UJqPMQQhtCDIdYQDDRwKqd3QS4MDrUE3ZgzZn V1G7X2m0uoiVd+OMRoKLWiIAQkmuhqojW4H2sLoO29Fz+OUTjb0MXZ0yx4lKE//ZWs73 /UamRCJ/OVuXTZ09aIqX8UVpC4Td7UZ4ASYI3kQYIgvP2Q6qAPrfR+XwtRXuyQGCNq1t 4lLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786121392; x=1786726192; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=SornuVu2NmXRbU5LVfa6yVFqz1q6nG6dUrxGm5KidRc=; b=sp54dgt1tdRA1s4qpSh/DqLMBqG3uMJstNG3oT36LRdfq4EtYC9Z8X30LTZjpQCrva 0QGcexNUpecOiaeGxsqn0lX1OknBZ06yxtMZzcG92iMHzFmtT8jZUACHGxEWRJDqy5ud T5uAp1G/WimtdXhJbsbtIui0JD3amNlyVtkwuef6A4jQJGQKgifogJ6F5r37vYvRshj1 DKnTPkKcYwjtgB+2tg+gTOSRy/IUJg3mSGCkdsTD+5qh2eK+v+K+9ABpHI+QBXF0uzX9 AkG3TeiHFQbEObSc0vI3QRQ2emII5ziHU4cGRV/ALcGkBCARpuN3iEeHe150hr3rSyM1 goMQ== X-Forwarded-Encrypted: i=1; AHgh+Ro/e+unqePig1MBxfHOgE6kmdbLaP2h80+BJ3fK4dfmU7aO+3KzDO1AFEXC9cXG2wu4ScYG/dCMiYYy9k8=@vger.kernel.org X-Gm-Message-State: AOJu0YxUj6KdugTUqUOb1J4ZXozTL5Z7wujqahZ25WlnhotRyY0n8Gw7 xRe5EsF62B8ySK+YAk7JHWoQZZJ12KeYIErv1V+LVafPxBXex2DUgxAN/Zoh8ULY4b4= X-Gm-Gg: AR+sD12IvUQN/wLZiHTWfTrvI/fmG2bN5TW6gSkQIB9XcOUI2R+GJ4IMvPCOguM4CBT 4QvMRpXY3VxeNW3k3xVhL8CycTet3iODcjbrOJGdeAh23B35cU79GzzL3GxdBbsf7GitOtYDQQI F830yvBkDdu38P8wcDIOCy33nU+5QMpJx6z+WRTfwuCFwp+676SEpJIXSca9bW1gLHqjuoMg2v3 fHaUP/mEpvXqfJb8mtWyPCEsmnX/p41lKq8S6uxX+KuryWWGJKlcBTVhgvuwblNIwUsOpbq76bO z3r4tSbRoic0GvUn2DlmJ8LW3PN8nH/mJX9TVGlR+tnX9TdBliWZkymgEUjB58vA1vk8U7TrAJ7 eM42ncFdvI7gDS+g3PXvPgjENbq4QzBca8Z3UeGNZrDWrHLdkv2O4HXCcNEG7ZL3aQkVttFu4fr IxaA7decfoJKDWzK1uVCKZYy470uklfi4wyb+NMQW8awMwppX0Kn7W0NgUwNc= X-Received: by 2002:a05:622a:578e:b0:51c:61a:50fa with SMTP id d75a77b69052e-52d20a7ac27mr28210301cf.39.1786121392310; Fri, 07 Aug 2026 09:49:52 -0700 (PDT) Received: from localhost ([2603:7001:f100:500:365a:60ff:fe62:ff29]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-908a918dd24sm12748156d6.8.2026.08.07.09.49.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2026 09:49:50 -0700 (PDT) Date: Fri, 7 Aug 2026 12:49:49 -0400 From: Johannes Weiner 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 , Matthew Wilcox , Christoph Hellwig , Yosry Ahmed , Chengming Zhou , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] mm/page_io: convert write completion handlers to folios Message-ID: References: <20260806-b4-page_io-folios-v1-0-0899bac3b826@columbia.edu> <20260806-b4-page_io-folios-v1-1-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-1-0899bac3b826@columbia.edu> On Thu, Aug 06, 2026 at 06:55:33PM -0400, Tal Zussman wrote: > Convert swap_write_end() and swap_fs_write_complete() to operate on > folios directly instead of going through the folio-compat page APIs. > This removes calls to end_page_writeback() and set_page_dirty(), and the > last caller of ClearPageReclaim(), saving two calls to compound_head() > per folio on the write error path. > > Signed-off-by: Tal Zussman Also the last end_page_writeback() user in mm/ :) Nice. Acked-by: Johannes Weiner