Thread (8 messages) 8 messages, 5 authors, 2021-11-15

Re: [PATCH v1 1/5] mm/shmem: support deterministic charging of tmpfs

flat view

From: Shakeel Butt <hidden>
Date: 2021-11-15 18:53:02
Also in: linux-fsdevel, linux-mm

On Mon, Nov 8, 2021 at 5:18 PM Dave Chinner [off-list ref] wrote:
[...]
quoted
If we are to have this for all filesystems, then let's do that properly
and make it generic functionality from its introduction.
Fully agree.
Mina, I think supporting all filesystems might be a much cleaner
solution than adding fs specific code.

We need to:

1) Add memcg option handling in vfs_parse_fs_param() before fs
specific param handling.
2) Add a new page cache memcg charging interface (similar to swap).

With (1), no need to change any fs specific code.

With (2), fs codepaths will be free of memcg specific handling. This
new interface will be used in __filemap_add_folio(),
shmem_add_to_page_cache() and collapse_file().

thanks,
Shakeel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help