]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fs/buffer fs/mpage: remove large folio restriction
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 21 Feb 2025 22:38:20 +0000 (14:38 -0800)
committerChristian Brauner <brauner@kernel.org>
Mon, 24 Feb 2025 10:44:44 +0000 (11:44 +0100)
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 <hare@suse.de>
Reviewed-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20250221223823.1680616-6-mcgrof@kernel.org
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/buffer.c
fs/mpage.c

index 167fa3e33566634f8f69c3bc6db6d1d2e4c32ce5..194eacbefc95b5242a38c0ffd1ce63e03b8887e4 100644 (file)
@@ -2371,8 +2371,6 @@ int block_read_full_folio(struct folio *folio, get_block_t *get_block)
        if (IS_ENABLED(CONFIG_FS_VERITY) && IS_VERITY(inode))
                limit = inode->i_sb->s_maxbytes;
 
-       VM_BUG_ON_FOLIO(folio_test_large(folio), folio);
-
        head = folio_create_buffers(folio, inode, 0);
        blocksize = head->b_size;
 
index 9c8cf40152384c50b35089d26a9f21d916c855d9..ad7844de87c3045f758f1560ccc0b526d4b9fa23 100644 (file)
@@ -170,9 +170,6 @@ static struct bio *do_mpage_readpage(struct mpage_readpage_args *args)
        unsigned relative_block;
        gfp_t gfp = mapping_gfp_constraint(folio->mapping, GFP_KERNEL);
 
-       /* MAX_BUF_PER_PAGE, for example */
-       VM_BUG_ON_FOLIO(folio_test_large(folio), folio);
-
        if (args->is_readahead) {
                opf |= REQ_RAHEAD;
                gfp |= __GFP_NORETRY | __GFP_NOWARN;