btrfs-progs/kernel-lib/trace.h
Josef Bacik a7c33f90b4 btrfs-progs: kerncompat: add helpers for ctree.c sync
Here are the helpers and stubbed out functions to be able to sync in
ctree.c into btrfs-progs.  These are various utilities the kernel
provides, 1 relocation and qgroup related function, and a trace point we
have in ctree.c.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-10-03 01:11:56 +02:00

67 lines
1.4 KiB
C

#ifndef __PROGS_TRACE_H__
#define __PROGS_TRACE_H__
struct btrfs_work;
struct btrfs_fs_info;
struct extent_state;
struct extent_io_tree;
static inline void trace_btrfs_workqueue_alloc(void *ret, const char *name)
{
}
static inline void trace_btrfs_ordered_sched(struct btrfs_work *work)
{
}
static inline void trace_btrfs_all_work_done(struct btrfs_fs_info *fs_info,
struct btrfs_work *work)
{
}
static inline void trace_btrfs_work_sched(struct btrfs_work *work)
{
}
static inline void trace_btrfs_work_queued(struct btrfs_work *work)
{
}
static inline void trace_btrfs_workqueue_destroy(void *wq)
{
}
static inline void trace_alloc_extent_state(struct extent_state *state,
gfp_t mask, unsigned long ip)
{
}
static inline void trace_free_extent_state(struct extent_state *state,
unsigned long ip)
{
}
static inline void trace_btrfs_clear_extent_bit(struct extent_io_tree *tree,
u64 start, u64 end, u32 bits)
{
}
static inline void trace_btrfs_set_extent_bit(struct extent_io_tree *tree,
u64 start, u64 end, u32 bits)
{
}
static inline void trace_btrfs_convert_extent_bit(struct extent_io_tree *tree,
u64 start, u64 end, u32 bits,
u32 clear_bits)
{
}
static inline void trace_btrfs_cow_block(struct btrfs_root *root,
struct extent_buffer *buf,
struct extent_buffer *cow)
{
}
#endif /* __PROGS_TRACE_H__ */