fs/btrfs/tree-mod-log.h
Source file repositories/reference/linux-study-clean/fs/btrfs/tree-mod-log.h
File Facts
- System
- Linux kernel
- Corpus path
fs/btrfs/tree-mod-log.h- Extension
.h- Size
- 1865 bytes
- Lines
- 59
- 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.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/list.h
Detected Declarations
struct extent_bufferstruct btrfs_fs_infostruct btrfs_pathstruct btrfs_rootstruct btrfs_seq_liststruct btrfs_seq_listenum btrfs_mod_log_op
Annotated Snippet
struct btrfs_seq_list {
struct list_head list;
u64 seq;
};
#define BTRFS_SEQ_LIST_INIT(name) { .list = LIST_HEAD_INIT((name).list), .seq = 0 }
#define BTRFS_SEQ_LAST ((u64)-1)
enum btrfs_mod_log_op {
BTRFS_MOD_LOG_KEY_REPLACE,
BTRFS_MOD_LOG_KEY_ADD,
BTRFS_MOD_LOG_KEY_REMOVE,
BTRFS_MOD_LOG_KEY_REMOVE_WHILE_FREEING,
BTRFS_MOD_LOG_KEY_REMOVE_WHILE_MOVING,
BTRFS_MOD_LOG_MOVE_KEYS,
BTRFS_MOD_LOG_ROOT_REPLACE,
};
u64 btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info,
struct btrfs_seq_list *elem);
void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info,
struct btrfs_seq_list *elem);
int btrfs_tree_mod_log_insert_root(struct extent_buffer *old_root,
struct extent_buffer *new_root,
bool log_removal);
int btrfs_tree_mod_log_insert_key(const struct extent_buffer *eb, int slot,
enum btrfs_mod_log_op op);
int btrfs_tree_mod_log_free_eb(struct extent_buffer *eb);
struct extent_buffer *btrfs_tree_mod_log_rewind(struct btrfs_fs_info *fs_info,
struct extent_buffer *eb,
u64 time_seq);
struct extent_buffer *btrfs_get_old_root(struct btrfs_root *root, u64 time_seq);
int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq);
int btrfs_tree_mod_log_eb_copy(struct extent_buffer *dst,
const struct extent_buffer *src,
unsigned long dst_offset,
unsigned long src_offset,
int nr_items);
int btrfs_tree_mod_log_insert_move(const struct extent_buffer *eb,
int dst_slot, int src_slot,
int nr_items);
u64 btrfs_tree_mod_log_lowest_seq(struct btrfs_fs_info *fs_info);
#endif
Annotation
- Immediate include surface: `linux/list.h`.
- Detected declarations: `struct extent_buffer`, `struct btrfs_fs_info`, `struct btrfs_path`, `struct btrfs_root`, `struct btrfs_seq_list`, `struct btrfs_seq_list`, `enum btrfs_mod_log_op`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.