linux/fs/erofs
Gao Xiang 4127caee89 erofs: apply proper VMA alignment for memory mapped files on THP
There are mainly two reasons that thp_get_unmapped_area() should be
used for EROFS as other filesystems:

 - It's needed to enable PMD mappings as a FSDAX filesystem, see
   commit 74d2fad133 ("thp, dax: add thp_get_unmapped_area for pmd
   mappings");

 - It's useful together with large folios and
   CONFIG_READ_ONLY_THP_FOR_FS which enable THPs for mmapped files
   (e.g. shared libraries) even without FSDAX.  See commit 1854bc6e24
   ("mm/readahead: Align file mappings for non-DAX").

Fixes: 06252e9ce0 ("erofs: dax support for non-tailpacking regular file")
Fixes: ce529cc25b ("erofs: enable large folios for iomap mode")
Fixes: e6687b8922 ("erofs: enable large folios for fscache mode")
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240306053138.2240206-1-hsiangkao@linux.alibaba.com
2024-03-07 10:21:10 +08:00
..
compress.h erofs: relaxed temporary buffers allocation on readahead 2024-01-27 12:28:08 +08:00
data.c erofs: apply proper VMA alignment for memory mapped files on THP 2024-03-07 10:21:10 +08:00
decompressor_deflate.c erofs: relaxed temporary buffers allocation on readahead 2024-01-27 12:28:08 +08:00
decompressor_lzma.c erofs: relaxed temporary buffers allocation on readahead 2024-01-27 12:28:08 +08:00
decompressor.c erofs: fix uninitialized page cache reported by KMSAN 2024-03-07 10:21:00 +08:00
dir.c erofs: keep meta inode into erofs_buf 2023-04-17 01:15:50 +08:00
erofs_fs.h erofs: update on-disk format for xattr name filter 2023-08-11 12:11:44 +08:00
fscache.c A couple of fixes - revert of regression from this cycle 2024-02-25 09:17:15 -08:00
inode.c erofs: get rid of unneeded GFP_NOFS 2024-01-25 11:24:19 +08:00
internal.h Changes since last update: 2023-11-02 07:53:57 -10:00
Kconfig netfs, fscache: Combine fscache with netfs 2023-12-24 15:08:46 +00:00
Makefile erofs: DEFLATE compression support 2023-08-11 12:11:17 +08:00
namei.c erofs: fix refcount on the metabuf used for inode lookup 2024-02-22 15:54:21 +08:00
pcpubuf.c erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init 2023-03-09 22:49:30 +08:00
super.c erofs: make erofs_{err,info}() support NULL sb parameter 2024-01-10 19:59:39 +08:00
sysfs.c erofs: make kobj_type structures constant 2023-02-15 08:11:26 +08:00
utils.c erofs: get rid of unneeded GFP_NOFS 2024-01-25 11:24:19 +08:00
xattr.c erofs: move erofs_xattr_handlers and xattr_handler_map to .rodata 2023-10-09 16:24:17 +02:00
xattr.h erofs: move erofs_xattr_handlers and xattr_handler_map to .rodata 2023-10-09 16:24:17 +02:00
zdata.c erofs: relaxed temporary buffers allocation on readahead 2024-01-27 12:28:08 +08:00
zmap.c Changes since last update: 2024-01-18 18:12:26 -08:00