From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796228776; b=YN/ZiZ2ycgtCn36AtNik2nOHL8Dw+MGmJwodXrGbrfALtm4LViLzNxp6LFrDsreORDRx /gm/svQCyd/NpepcPMEBBISKVvw/EGtB/KiCwhxarNGpO4zjpGT76bCJXn/Z1rCN0ACpB B4KMc8ez7nH9iQFA6r51wdWxHoJjBznaa+3vQV2isbyPx/mYvwvjM59rx5irTRdsbIf2N z+lPNjqRTcwYzG0TJW/oroNaI7TfMq9GtirHTgUVPTvG377Kp7KuAY3ABdq6H1o+32LaT hSzWflG1aNUszCQ+5em2vVlIc9EY1oiCXGynulJCHYvzxbgc6EkR9J/Zpa44FV2WW9A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796228776; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=T5WnMxjLN1H+X3j1LrPnexJIyDupQ5ZYeClv6FgyFE0=; b=KG1/FWCVzbQkcatJ07q+jbdb6VvI9IT4pp+wNWqMam64KqlwXw2dMrzyJCZrnw/OyFX3 X+SR57PYnMnVdgQ9hf1bcSGHsh705ng9PM2VKUeBv/7jfjRcHcpexURVrBvqhm5RS5gtA tOqGJHGejHRDpRp7gfSjl/WZ598rU7UVXSNVAR5xvEKaF/y7S5E1s2Ja6ETEFkJNiDudK OlVg4hLgetSGOBIZEfDGpnae22sZbiP7NRqW/6KJ6Dd0ZicQ/8GSDOkBQH/UfucdOiTts 78MHQ0L/vzoin8wc00BudqrakOHV1k54kf3FB7hKEHVWgACNeyholUzNBIo+NyVF3DQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 759F6606A331 for ; Wed, 2 Dec 2026 16:26:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 759F6606A331 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 1468B68BFE; Wed, 2 Dec 2026 17:26:10 +0100 (CET) Date: Wed, 2 Dec 2026 17:26:09 +0100 From: Christoph Hellwig To: Usama Arif Cc: Andrew Morton , willy@infradead.org, jack@suse.cz, david@kernel.org, axboe@kernel.dk, Christoph Hellwig , hannes@cmpxchg.org, jlayton@kernel.org, brauner@kernel.org, tz2294@columbia.edu, ritesh.list@gmail.com, chentaotao@didiglobal.com, ziy@nvidia.com, bigeasy@linutronix.de, liam@infradead.org, vbabka@kernel.org, rppt@kernel.org, mhocko@suse.com, apopple@nvidia.com, byungchul@sk.com, gourry@gourry.net, joshua.hahnjy@gmail.com, matthew.brost@intel.com, ying.huang@linux.alibaba.com, clrkwllms@kernel.org, rostedt@goodmis.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-rt-devel@lists.linux.dev, kas@kernel.org, riel@surriel.com, shakeel.butt@linux.dev, kernel-team@meta.com Subject: Re: [PATCH 4/4] mm/fadvise: drop folios under writeback on POSIX_FADV_DONTNEED Message-ID: <20261202162609.GC4653@lst.de> References: <20261202142513.2951661-1-usama.arif@linux.dev> <20261202142513.2951661-5-usama.arif@linux.dev> X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202142513.2951661-5-usama.arif@linux.dev> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Dec 02, 2026 at 06:24:39AM -0800, Usama Arif wrote: > POSIX_FADV_DONTNEED starts writeback on dirty folios but skips folios > under writeback when invalidating. With large folios one writeback bio > can hold hundreds of megabytes, none of which leaves writeback until all > of it completes, so on XFS DONTNEED right after writing a new 256 MiB s/XFS/fadvise/ ?