]> Git Repo - linux.git/blobdiff - fs/btrfs/zstd.c
btrfs: migrate various end io functions to folios
[linux.git] / fs / btrfs / zstd.c
index 5511766485cdd6a9d6cae03b5696ef7e29e710a5..0d66db8bc1d4774835348a1aa71b827371aebb65 100644 (file)
@@ -410,9 +410,8 @@ int zstd_compress_pages(struct list_head *ws, struct address_space *mapping,
        workspace->in_buf.pos = 0;
        workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE);
 
-
        /* Allocate and map in the output buffer */
-       out_page = alloc_page(GFP_NOFS);
+       out_page = btrfs_alloc_compr_page();
        if (out_page == NULL) {
                ret = -ENOMEM;
                goto out;
@@ -457,7 +456,7 @@ int zstd_compress_pages(struct list_head *ws, struct address_space *mapping,
                                ret = -E2BIG;
                                goto out;
                        }
-                       out_page = alloc_page(GFP_NOFS);
+                       out_page = btrfs_alloc_compr_page();
                        if (out_page == NULL) {
                                ret = -ENOMEM;
                                goto out;
@@ -514,7 +513,7 @@ int zstd_compress_pages(struct list_head *ws, struct address_space *mapping,
                        ret = -E2BIG;
                        goto out;
                }
-               out_page = alloc_page(GFP_NOFS);
+               out_page = btrfs_alloc_compr_page();
                if (out_page == NULL) {
                        ret = -ENOMEM;
                        goto out;
This page took 0.033633 seconds and 4 git commands to generate.