Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

f2fs: do not support mmap write for large folio

Let's check mmap writes onto the large folio, since we don't support writing
large folios.

Reviewed-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

+10 -1
+10 -1
fs/f2fs/file.c
··· 82 82 int err = 0; 83 83 vm_fault_t ret; 84 84 85 - if (unlikely(IS_IMMUTABLE(inode))) 85 + /* 86 + * We only support large folio on the read case. 87 + * Don't make any dirty pages. 88 + */ 89 + if (unlikely(IS_IMMUTABLE(inode)) || 90 + mapping_large_folio_support(inode->i_mapping)) { 91 + f2fs_err(sbi, "Not expected: immutable: %d large_folio: %d", 92 + IS_IMMUTABLE(inode), 93 + mapping_large_folio_support(inode->i_mapping)); 86 94 return VM_FAULT_SIGBUS; 95 + } 87 96 88 97 if (is_inode_flag_set(inode, FI_COMPRESS_RELEASED)) { 89 98 err = -EIO;