[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z4oNGYJrN-XGX87M@infradead.org>
Date: Thu, 16 Jan 2025 23:56:09 -0800
From: Christoph Hellwig <hch@...radead.org>
To: Jaegeuk Kim <jaegeuk@...nel.org>
Cc: Christoph Hellwig <hch@...radead.org>, linux-kernel@...r.kernel.org,
linux-f2fs-devel@...ts.sourceforge.net,
Al Viro <viro@...iv.linux.org.uk>, Jan Kara <jack@...e.cz>,
Christian Brauner <brauner@...nel.org>,
linux-fsdevel@...r.kernel.org, linux-api@...r.kernel.org,
linux-man@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH 1/2] f2fs: register inodes which is able to donate pages
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.
Powered by blists - more mailing lists