linux/net/ceph/pagelist.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/module.h>
#include <linux/gfp.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/highmem.h>
#include <linux/ceph/pagelist.h>

struct ceph_pagelist *ceph_pagelist_alloc(gfp_t gfp_flags)
{}
EXPORT_SYMBOL();

static void ceph_pagelist_unmap_tail(struct ceph_pagelist *pl)
{}

void ceph_pagelist_release(struct ceph_pagelist *pl)
{}
EXPORT_SYMBOL();

static int ceph_pagelist_addpage(struct ceph_pagelist *pl)
{}

int ceph_pagelist_append(struct ceph_pagelist *pl, const void *buf, size_t len)
{}
EXPORT_SYMBOL();

/* Allocate enough pages for a pagelist to append the given amount
 * of data without allocating.
 * Returns: 0 on success, -ENOMEM on error.
 */
int ceph_pagelist_reserve(struct ceph_pagelist *pl, size_t space)
{}
EXPORT_SYMBOL();

/* Free any pages that have been preallocated. */
int ceph_pagelist_free_reserve(struct ceph_pagelist *pl)
{}
EXPORT_SYMBOL();

/* Create a truncation point. */
void ceph_pagelist_set_cursor(struct ceph_pagelist *pl,
			      struct ceph_pagelist_cursor *c)
{}
EXPORT_SYMBOL();

/* Truncate a pagelist to the given point. Move extra pages to reserve.
 * This won't sleep.
 * Returns: 0 on success,
 *          -EINVAL if the pagelist doesn't match the trunc point pagelist
 */
int ceph_pagelist_truncate(struct ceph_pagelist *pl,
			   struct ceph_pagelist_cursor *c)
{}
EXPORT_SYMBOL();