On Tue, Nov 19, 2024 at 3:45 PM Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx> wrote: > > On (24/11/19 09:27), Barry Song wrote: > > On Mon, Nov 18, 2024 at 10:56 PM Sergey Senozhatsky > > <senozhatsky@xxxxxxxxxxxx> wrote: > > > > > > On (24/11/12 09:31), Barry Song wrote: > > > [..] > > Yes, some filesystems also support mTHP. A simple grep > > command can list them all: > > > > fs % git grep mapping_set_large_folios > > afs/inode.c: mapping_set_large_folios(inode->i_mapping); > > afs/inode.c: mapping_set_large_folios(inode->i_mapping); > > bcachefs/fs.c: mapping_set_large_folios(inode->v.i_mapping); > > erofs/inode.c: mapping_set_large_folios(inode->i_mapping); > > nfs/inode.c: mapping_set_large_folios(inode->i_mapping); > > smb/client/inode.c: mapping_set_large_folios(inode->i_mapping); > > zonefs/super.c: mapping_set_large_folios(inode->i_mapping); > > Yeah, those are mostly not on-disk file systems, or not filesystems > that people use en-mass for r/w I/O workloads (e.g. vfat, ext4, etc.) there is work to bring up ext4 large folios though :-) https://lore.kernel.org/linux-fsdevel/20241022111059.2566137-1-yi.zhang@xxxxxxxxxxxxxxx/