linux/fs/squashfs/page_actor.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2013
 * Phillip Lougher <[email protected]>
 */

#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
#include "squashfs_fs_sb.h"
#include "decompressor.h"
#include "page_actor.h"

/*
 * This file contains implementations of page_actor for decompressing into
 * an intermediate buffer, and for decompressing directly into the
 * page cache.
 *
 * Calling code should avoid sleeping between calls to squashfs_first_page()
 * and squashfs_finish_page().
 */

/* Implementation of page_actor for decompressing into intermediate buffer */
static void *cache_first_page(struct squashfs_page_actor *actor)
{}

static void *cache_next_page(struct squashfs_page_actor *actor)
{}

static void cache_finish_page(struct squashfs_page_actor *actor)
{}

struct squashfs_page_actor *squashfs_page_actor_init(void **buffer,
	int pages, int length)
{}

/* Implementation of page_actor for decompressing directly into page cache. */
static void *handle_next_page(struct squashfs_page_actor *actor)
{}

static void *direct_first_page(struct squashfs_page_actor *actor)
{}

static void *direct_next_page(struct squashfs_page_actor *actor)
{}

static void direct_finish_page(struct squashfs_page_actor *actor)
{}

struct squashfs_page_actor *squashfs_page_actor_init_special(struct squashfs_sb_info *msblk,
	struct page **page, int pages, int length)
{}