fs/xfs/scrub/dab_bitmap.h

Source file repositories/reference/linux-study-clean/fs/xfs/scrub/dab_bitmap.h

File Facts

System
Linux kernel
Corpus path
fs/xfs/scrub/dab_bitmap.h
Extension
.h
Size
913 bytes
Lines
38
Domain
Core OS
Bucket
VFS And Filesystem Core
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

struct xdab_bitmap {
	struct xbitmap32	dabitmap;
};

static inline void xdab_bitmap_init(struct xdab_bitmap *bitmap)
{
	xbitmap32_init(&bitmap->dabitmap);
}

static inline void xdab_bitmap_destroy(struct xdab_bitmap *bitmap)
{
	xbitmap32_destroy(&bitmap->dabitmap);
}

static inline int xdab_bitmap_set(struct xdab_bitmap *bitmap,
		xfs_dablk_t dabno, xfs_extlen_t len)
{
	return xbitmap32_set(&bitmap->dabitmap, dabno, len);
}

static inline bool xdab_bitmap_test(struct xdab_bitmap *bitmap,
		xfs_dablk_t dabno, xfs_extlen_t *len)
{
	return xbitmap32_test(&bitmap->dabitmap, dabno, len);
}

#endif	/* __XFS_SCRUB_DAB_BITMAP_H__ */

Annotation

Implementation Notes