From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C2C981F6687; Fri, 17 Jan 2025 07:56:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737100573; cv=none; b=tu2rtKfaR1DDE9RC8zEkKBbOgkYqMs3oLkQr4hOFNjRNF/yR8iUsTyeFacR2ccq9S1qvgwJt/6UkWVs7pPIOWN+R/XMvtuAuUOUukuD+eVrCiOtmh7GJHG0WsTbZ/NJ9h9CST/2sk7KkPOoTuSCV4QR6j/xq1x8qcl9hhizcil4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737100573; c=relaxed/simple; bh=vbsrK0oAOquXB6Qxnm6v5muRqOVJe9pjcUpbdG/aAbI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KQ2nTWjqY2ATG6ZzT669frGMnpIRjJKLddJJfKPnCfRtejnw+Co/N9CksEMWKgvl7EFPe+o7bWcd1/4dA/eFVrtOyRVGzIZFKmWCXaPCIz1QQVONW3k/+a7LJpftJFmnOOBQYdauHWwByi7KmlspPzMeNEu3l2Ox3aie3SJD6HM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=3g8uUr/z; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="3g8uUr/z" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=0xS4rzAwShP4fR0GmRf+Y/L+j7Nhbi6WmSe8J0Qupus=; b=3g8uUr/zQeamxBYJg5IR9w1nI5 4XFglwglcwD6Kg+PhuCwG7MVHgvS5R/Pv5qLbbjmqEPK6DcIdD8PqbKmKt2IqippGnsPrcU8W8Ymy XYnki7fkGVODbJ/QGQkw95oNIYJRFIlp6gFu4h4wfGz+AXhghuLQOG4XlVtrU+INYLUoGcKddyaCm q3GJGEWpcbQcUCO0eIRoTyJ1iV3dj8zetOQr9Rbg7SOb/YBakeHaz9vZ9YgflNRZZP5NVMotg68rR 6TGchrX0Hlb2sgEsRFJEjDaIE7qkOcAzCPou0RQ4xolbPR3/9ssMsF8+dP0kUVg/7qGKwYqvmaaHR 0EfZr12g==; Received: from hch by bombadil.infradead.org with local (Exim 4.98 #2 (Red Hat Linux)) id 1tYhD7-0000000HGFi-3cg9; Fri, 17 Jan 2025 07:56:09 +0000 Date: Thu, 16 Jan 2025 23:56:09 -0800 From: Christoph Hellwig To: Jaegeuk Kim Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Al Viro , Jan Kara , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 1/2] f2fs: register inodes which is able to donate pages Message-ID: References: <20250115221814.1920703-1-jaegeuk@kernel.org> <20250115221814.1920703-2-jaegeuk@kernel.org> Precedence: bulk X-Mailing-List: linux-api@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: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Thu, Jan 16, 2025 at 05:19:24PM +0000, Jaegeuk Kim wrote: > > mean a invalidate_inode_pages2_range. Which is a strange use of the > > word. what are the use cases? Why is this queued up to a thread and > > not done inline? Why is this in f2fs and not in common code. > > The idea is let apps register some file ranges for page donation and admin > recliam such pages all togehter if they expect to see memory pressure soon. > We can rely on LRU, but this is more user-given trigger. I'm not sure whether > there's a need in general, hence, wanted to put it in f2fs first to get more > concrete use-cases beyond this Android case. Well, that's certainly not a file system feature. Please build this as generic infrastucture and send it to the linux-mm list.