linux/fs/hfsplus/bnode.c

// SPDX-License-Identifier: GPL-2.0
/*
 *  linux/fs/hfsplus/bnode.c
 *
 * Copyright (C) 2001
 * Brad Boyer ([email protected])
 * (C) 2003 Ardis Technologies <[email protected]>
 *
 * Handle basic btree node operations
 */

#include <linux/string.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/fs.h>
#include <linux/swap.h>

#include "hfsplus_fs.h"
#include "hfsplus_raw.h"

/* Copy a specified range of bytes from the raw data of a node */
void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len)
{}

u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off)
{}

u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off)
{}

void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off)
{}

void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len)
{}

void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data)
{}

void hfs_bnode_clear(struct hfs_bnode *node, int off, int len)
{}

void hfs_bnode_copy(struct hfs_bnode *dst_node, int dst,
		    struct hfs_bnode *src_node, int src, int len)
{}

void hfs_bnode_move(struct hfs_bnode *node, int dst, int src, int len)
{}

void hfs_bnode_dump(struct hfs_bnode *node)
{}

void hfs_bnode_unlink(struct hfs_bnode *node)
{}

static inline int hfs_bnode_hash(u32 num)
{}

struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid)
{}

static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid)
{}

void hfs_bnode_unhash(struct hfs_bnode *node)
{}

/* Load a particular node out of a tree */
struct hfs_bnode *hfs_bnode_find(struct hfs_btree *tree, u32 num)
{}

void hfs_bnode_free(struct hfs_bnode *node)
{}

struct hfs_bnode *hfs_bnode_create(struct hfs_btree *tree, u32 num)
{}

void hfs_bnode_get(struct hfs_bnode *node)
{}

/* Dispose of resources used by a node */
void hfs_bnode_put(struct hfs_bnode *node)
{}

/*
 * Unused nodes have to be zeroed if this is the catalog tree and
 * a corresponding flag in the volume header is set.
 */
bool hfs_bnode_need_zeroout(struct hfs_btree *tree)
{}