linux/fs/exfat/balloc.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Copyright (C) 2012-2013 Samsung Electronics Co., Ltd.
 */

#include <linux/blkdev.h>
#include <linux/slab.h>
#include <linux/bitmap.h>
#include <linux/buffer_head.h>

#include "exfat_raw.h"
#include "exfat_fs.h"

#if BITS_PER_LONG == 32
#define __le_long
#define lel_to_cpu
#define cpu_to_lel
#elif BITS_PER_LONG == 64
#define __le_long
#define lel_to_cpu(A)
#define cpu_to_lel(A)
#else
#error "BITS_PER_LONG not 32 or 64"
#endif

/*
 *  Allocation Bitmap Management Functions
 */
static int exfat_allocate_bitmap(struct super_block *sb,
		struct exfat_dentry *ep)
{}

int exfat_load_bitmap(struct super_block *sb)
{}

void exfat_free_bitmap(struct exfat_sb_info *sbi)
{}

int exfat_set_bitmap(struct inode *inode, unsigned int clu, bool sync)
{}

void exfat_clear_bitmap(struct inode *inode, unsigned int clu, bool sync)
{}

/*
 * If the value of "clu" is 0, it means cluster 2 which is the first cluster of
 * the cluster heap.
 */
unsigned int exfat_find_free_bitmap(struct super_block *sb, unsigned int clu)
{}

int exfat_count_used_clusters(struct super_block *sb, unsigned int *ret_count)
{}

int exfat_trim_fs(struct inode *inode, struct fstrim_range *range)
{}