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=kScFQXgyVeX79wTb+QaJ1x4undjEFKF0X2GG49lxsS6PeSluCwTGv4zF3lX0pG7l2H3v h0V9LYgRJRpJn82tR+7xKRhjcOclFbYoQoiud9CUQa70HuJCUJl2cOK6lSFQdFFgINCEw XBLBsOyMWya5YtfBqwXnO/49z91//a03Cc3z42e0EEBITz4rmPyw65YA+VGSUcRa/I5mQ VvUsZm3h3RpTCvjVGmckP2hNGirDbbfU7GjXTMT3kavblUa03tFOybh6w034BeaGiQE7M K304viPwQD2NlWbHi557G22ujWytbPEWuYAco4X9tCHtKCKQH8gBiH9vZ7J2f4pEE4Q== 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=T13O3Gbgg81q+/Q5SCzgZGDU8ZruXmxxtaInRMnsdqGCny0iH/DLNjfpofH/vRv+Kvh6 OzBabBkSd4L5V5mswziTM4mB76Sxd0hNwnTuj+GKWtvd5fwqga/sWUPStFbaArDxawcXz RVEObOt3RH95kiANklmUv0kXOxjnaLpZj0+YHDxSMvSWKGvTGUV1RhjnOKeVFy/x6Ghra 2gD/RegwcNBLzpaXniOovWdll1H0vgfgMIlAgla3s2oef2T9mOswYu6AACVOF25MPSpk6 SQRE4uJ28RQ6QjduhGicPjaadXq/15fKcef9xvlVwjRNjPpi/xk7Xk7ZKSTJYsDtPPg== 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 D8B11606A325 for ; Wed, 2 Dec 2026 16:26:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D8B11606A325 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-rt-devel@lists.linux.dev 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/ ?