linux/include/linux/part_stat.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_PART_STAT_H
#define _LINUX_PART_STAT_H

#include <linux/blkdev.h>
#include <asm/local.h>

struct disk_stats {};

/*
 * Macros to operate on percpu disk statistics:
 *
 * {disk|part|all}_stat_{add|sub|inc|dec}() modify the stat counters and should
 * be called between disk_stat_lock() and disk_stat_unlock().
 *
 * part_stat_read() can be called at any time.
 */
#define part_stat_lock()
#define part_stat_unlock()

#define part_stat_get_cpu(part, field, cpu)

#define part_stat_get(part, field)

#define part_stat_read(part, field)

static inline void part_stat_set_all(struct block_device *part, int value)
{}

#define part_stat_read_accum(part, field)

#define __part_stat_add(part, field, addnd)

#define part_stat_add(part, field, addnd)

#define part_stat_dec(part, field)
#define part_stat_inc(part, field)
#define part_stat_sub(part, field, subnd)

#define part_stat_local_dec(part, field)
#define part_stat_local_inc(part, field)
#define part_stat_local_read(part, field)
#define part_stat_local_read_cpu(part, field, cpu)

#endif /* _LINUX_PART_STAT_H */