ctree.h (8632987380765dee716d460640aa58d58d52998e) | ctree.h (7a1636089acfee7562fe79aff7d1b4c57869896d) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#ifndef BTRFS_CTREE_H 7#define BTRFS_CTREE_H 8 --- 2243 unchanged lines hidden (view full) --- 2252} 2253 2254static inline bool btrfs_root_dead(const struct btrfs_root *root) 2255{ 2256 /* Byte-swap the constant at compile time, root_item::flags is LE */ 2257 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_DEAD)) != 0; 2258} 2259 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#ifndef BTRFS_CTREE_H 7#define BTRFS_CTREE_H 8 --- 2243 unchanged lines hidden (view full) --- 2252} 2253 2254static inline bool btrfs_root_dead(const struct btrfs_root *root) 2255{ 2256 /* Byte-swap the constant at compile time, root_item::flags is LE */ 2257 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_DEAD)) != 0; 2258} 2259 |
2260static inline u64 btrfs_root_id(const struct btrfs_root *root) 2261{ 2262 return root->root_key.objectid; 2263} 2264 |
|
2260/* struct btrfs_root_backup */ 2261BTRFS_SETGET_STACK_FUNCS(backup_tree_root, struct btrfs_root_backup, 2262 tree_root, 64); 2263BTRFS_SETGET_STACK_FUNCS(backup_tree_root_gen, struct btrfs_root_backup, 2264 tree_root_gen, 64); 2265BTRFS_SETGET_STACK_FUNCS(backup_tree_root_level, struct btrfs_root_backup, 2266 tree_root_level, 8); 2267 --- 446 unchanged lines hidden (view full) --- 2714struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans, 2715 struct btrfs_root *root, 2716 u64 parent, u64 root_objectid, 2717 const struct btrfs_disk_key *key, 2718 int level, u64 hint, 2719 u64 empty_size, 2720 enum btrfs_lock_nesting nest); 2721void btrfs_free_tree_block(struct btrfs_trans_handle *trans, | 2265/* struct btrfs_root_backup */ 2266BTRFS_SETGET_STACK_FUNCS(backup_tree_root, struct btrfs_root_backup, 2267 tree_root, 64); 2268BTRFS_SETGET_STACK_FUNCS(backup_tree_root_gen, struct btrfs_root_backup, 2269 tree_root_gen, 64); 2270BTRFS_SETGET_STACK_FUNCS(backup_tree_root_level, struct btrfs_root_backup, 2271 tree_root_level, 8); 2272 --- 446 unchanged lines hidden (view full) --- 2719struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans, 2720 struct btrfs_root *root, 2721 u64 parent, u64 root_objectid, 2722 const struct btrfs_disk_key *key, 2723 int level, u64 hint, 2724 u64 empty_size, 2725 enum btrfs_lock_nesting nest); 2726void btrfs_free_tree_block(struct btrfs_trans_handle *trans, |
2722 struct btrfs_root *root, | 2727 u64 root_id, |
2723 struct extent_buffer *buf, 2724 u64 parent, int last_ref); 2725int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans, 2726 struct btrfs_root *root, u64 owner, 2727 u64 offset, u64 ram_bytes, 2728 struct btrfs_key *ins); 2729int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans, 2730 u64 root_objectid, u64 owner, u64 offset, --- 1183 unchanged lines hidden --- | 2728 struct extent_buffer *buf, 2729 u64 parent, int last_ref); 2730int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans, 2731 struct btrfs_root *root, u64 owner, 2732 u64 offset, u64 ram_bytes, 2733 struct btrfs_key *ins); 2734int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans, 2735 u64 root_objectid, u64 owner, u64 offset, --- 1183 unchanged lines hidden --- |