Skip to content

Commit e59e97d

Browse files
mcgrofbrauner
authored andcommitted
fs/buffer fs/mpage: remove large folio restriction
Now that buffer-heads has been converted over to support large folios we can remove the built-in VM_BUG_ON_FOLIO() checks which prevents their use. Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: "Matthew Wilcox (Oracle)" <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: John Garry <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 8b45a4f commit e59e97d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

fs/buffer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,8 +2371,6 @@ int block_read_full_folio(struct folio *folio, get_block_t *get_block)
23712371
if (IS_ENABLED(CONFIG_FS_VERITY) && IS_VERITY(inode))
23722372
limit = inode->i_sb->s_maxbytes;
23732373

2374-
VM_BUG_ON_FOLIO(folio_test_large(folio), folio);
2375-
23762374
head = folio_create_buffers(folio, inode, 0);
23772375
blocksize = head->b_size;
23782376

fs/mpage.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ static struct bio *do_mpage_readpage(struct mpage_readpage_args *args)
170170
unsigned relative_block;
171171
gfp_t gfp = mapping_gfp_constraint(folio->mapping, GFP_KERNEL);
172172

173-
/* MAX_BUF_PER_PAGE, for example */
174-
VM_BUG_ON_FOLIO(folio_test_large(folio), folio);
175-
176173
if (args->is_readahead) {
177174
opf |= REQ_RAHEAD;
178175
gfp |= __GFP_NORETRY | __GFP_NOWARN;

0 commit comments

Comments
 (0)