Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
ctree.h File Reference
#include <linux/mm.h>
#include <linux/highmem.h>
#include <linux/fs.h>
#include <linux/rwsem.h>
#include <linux/completion.h>
#include <linux/backing-dev.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <linux/kobject.h>
#include <trace/events/btrfs.h>
#include <asm/kmap_types.h>
#include <linux/pagemap.h>
#include "extent_io.h"
#include "extent_map.h"
#include "async-thread.h"
#include "ioctl.h"

Go to the source code of this file.

Data Structures

struct  btrfs_disk_key
 
struct  btrfs_key
 
struct  btrfs_mapping_tree
 
struct  btrfs_dev_item
 
struct  btrfs_stripe
 
struct  btrfs_chunk
 
struct  btrfs_free_space_entry
 
struct  btrfs_free_space_header
 
struct  btrfs_header
 
struct  btrfs_root_backup
 
struct  btrfs_super_block
 
struct  btrfs_item
 
struct  btrfs_leaf
 
struct  btrfs_key_ptr
 
struct  btrfs_node
 
struct  btrfs_path
 
struct  btrfs_extent_item
 
struct  btrfs_extent_item_v0
 
struct  btrfs_tree_block_info
 
struct  btrfs_extent_data_ref
 
struct  btrfs_shared_data_ref
 
struct  btrfs_extent_inline_ref
 
struct  btrfs_extent_ref_v0
 
struct  btrfs_dev_extent
 
struct  btrfs_inode_ref
 
struct  btrfs_inode_extref
 
struct  btrfs_timespec
 
struct  btrfs_inode_item
 
struct  btrfs_dir_log_item
 
struct  btrfs_dir_item
 
struct  btrfs_root_item
 
struct  btrfs_root_ref
 
struct  btrfs_disk_balance_args
 
struct  btrfs_balance_item
 
struct  btrfs_file_extent_item
 
struct  btrfs_csum_item
 
struct  btrfs_dev_stats_item
 
struct  btrfs_block_group_item
 
struct  btrfs_qgroup_status_item
 
struct  btrfs_qgroup_info_item
 
struct  btrfs_qgroup_limit_item
 
struct  btrfs_space_info
 
struct  btrfs_block_rsv
 
struct  btrfs_free_cluster
 
struct  btrfs_caching_control
 
struct  btrfs_block_group_cache
 
struct  seq_list
 
struct  btrfs_fs_info
 
struct  btrfs_root
 
struct  btrfs_ioctl_defrag_range_args
 
struct  btrfs_map_token
 
struct  reada_control
 
struct  qgroup_update
 

Macros

#define BTRFS_MAGIC   "_BHRfS_M"
 
#define BTRFS_MAX_MIRRORS   2
 
#define BTRFS_MAX_LEVEL   8
 
#define BTRFS_COMPAT_EXTENT_TREE_V0
 
#define BTRFS_ORDERED_OPERATIONS_FLUSH_LIMIT   (8 * 1024 * 1024)
 
#define BTRFS_ROOT_TREE_OBJECTID   1ULL
 
#define BTRFS_EXTENT_TREE_OBJECTID   2ULL
 
#define BTRFS_CHUNK_TREE_OBJECTID   3ULL
 
#define BTRFS_DEV_TREE_OBJECTID   4ULL
 
#define BTRFS_FS_TREE_OBJECTID   5ULL
 
#define BTRFS_ROOT_TREE_DIR_OBJECTID   6ULL
 
#define BTRFS_CSUM_TREE_OBJECTID   7ULL
 
#define BTRFS_BALANCE_OBJECTID   -4ULL
 
#define BTRFS_QUOTA_TREE_OBJECTID   8ULL
 
#define BTRFS_ORPHAN_OBJECTID   -5ULL
 
#define BTRFS_TREE_LOG_OBJECTID   -6ULL
 
#define BTRFS_TREE_LOG_FIXUP_OBJECTID   -7ULL
 
#define BTRFS_TREE_RELOC_OBJECTID   -8ULL
 
#define BTRFS_DATA_RELOC_TREE_OBJECTID   -9ULL
 
#define BTRFS_EXTENT_CSUM_OBJECTID   -10ULL
 
#define BTRFS_FREE_SPACE_OBJECTID   -11ULL
 
#define BTRFS_FREE_INO_OBJECTID   -12ULL
 
#define BTRFS_MULTIPLE_OBJECTIDS   -255ULL
 
#define BTRFS_FIRST_FREE_OBJECTID   256ULL
 
#define BTRFS_LAST_FREE_OBJECTID   -256ULL
 
#define BTRFS_FIRST_CHUNK_TREE_OBJECTID   256ULL
 
#define BTRFS_DEV_ITEMS_OBJECTID   1ULL
 
#define BTRFS_BTREE_INODE_OBJECTID   1
 
#define BTRFS_EMPTY_SUBVOL_DIR_OBJECTID   2
 
#define BTRFS_MAX_METADATA_BLOCKSIZE   65536
 
#define BTRFS_NAME_LEN   255
 
#define BTRFS_LINK_MAX   65535U
 
#define BTRFS_CSUM_SIZE   32
 
#define BTRFS_CSUM_TYPE_CRC32   0
 
#define BTRFS_EMPTY_DIR_SIZE   0
 
#define BTRFS_FT_UNKNOWN   0
 
#define BTRFS_FT_REG_FILE   1
 
#define BTRFS_FT_DIR   2
 
#define BTRFS_FT_CHRDEV   3
 
#define BTRFS_FT_BLKDEV   4
 
#define BTRFS_FT_FIFO   5
 
#define BTRFS_FT_SOCK   6
 
#define BTRFS_FT_SYMLINK   7
 
#define BTRFS_FT_XATTR   8
 
#define BTRFS_FT_MAX   9
 
#define BTRFS_IOPRIO_READA   (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0))
 
#define BTRFS_FREE_SPACE_EXTENT   1
 
#define BTRFS_FREE_SPACE_BITMAP   2
 
#define BTRFS_HEADER_FLAG_WRITTEN   (1ULL << 0)
 
#define BTRFS_HEADER_FLAG_RELOC   (1ULL << 1)
 
#define BTRFS_SUPER_FLAG_ERROR   (1ULL << 2)
 
#define BTRFS_SUPER_FLAG_SEEDING   (1ULL << 32)
 
#define BTRFS_SUPER_FLAG_METADUMP   (1ULL << 33)
 
#define BTRFS_BACKREF_REV_MAX   256
 
#define BTRFS_BACKREF_REV_SHIFT   56
 
#define BTRFS_BACKREF_REV_MASK
 
#define BTRFS_OLD_BACKREF_REV   0
 
#define BTRFS_MIXED_BACKREF_REV   1
 
#define BTRFS_NODEPTRS_PER_BLOCK(r)
 
#define __BTRFS_LEAF_DATA_SIZE(bs)   ((bs) - sizeof(struct btrfs_header))
 
#define BTRFS_LEAF_DATA_SIZE(r)   (__BTRFS_LEAF_DATA_SIZE(r->leafsize))
 
#define BTRFS_MAX_INLINE_DATA_SIZE(r)
 
#define BTRFS_MAX_XATTR_SIZE(r)
 
#define BTRFS_SYSTEM_CHUNK_ARRAY_SIZE   2048
 
#define BTRFS_LABEL_SIZE   256
 
#define BTRFS_NUM_BACKUP_ROOTS   4
 
#define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF   (1ULL << 0)
 
#define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL   (1ULL << 1)
 
#define BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS   (1ULL << 2)
 
#define BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO   (1ULL << 3)
 
#define BTRFS_FEATURE_INCOMPAT_COMPRESS_LZOv2   (1ULL << 4)
 
#define BTRFS_FEATURE_INCOMPAT_BIG_METADATA   (1ULL << 5)
 
#define BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF   (1ULL << 6)
 
#define BTRFS_FEATURE_COMPAT_SUPP   0ULL
 
#define BTRFS_FEATURE_COMPAT_RO_SUPP   0ULL
 
#define BTRFS_FEATURE_INCOMPAT_SUPP
 
#define BTRFS_MAX_EXTENT_ITEM_SIZE(r)
 
#define BTRFS_EXTENT_FLAG_DATA   (1ULL << 0)
 
#define BTRFS_EXTENT_FLAG_TREE_BLOCK   (1ULL << 1)
 
#define BTRFS_BLOCK_FLAG_FULL_BACKREF   (1ULL << 8)
 
#define BTRFS_EXTENT_FLAG_SUPER   (1ULL << 48)
 
#define BTRFS_ROOT_SUBVOL_RDONLY   (1ULL << 0)
 
#define BTRFS_FILE_EXTENT_INLINE   0
 
#define BTRFS_FILE_EXTENT_REG   1
 
#define BTRFS_FILE_EXTENT_PREALLOC   2
 
#define BTRFS_BLOCK_GROUP_DATA   (1ULL << 0)
 
#define BTRFS_BLOCK_GROUP_SYSTEM   (1ULL << 1)
 
#define BTRFS_BLOCK_GROUP_METADATA   (1ULL << 2)
 
#define BTRFS_BLOCK_GROUP_RAID0   (1ULL << 3)
 
#define BTRFS_BLOCK_GROUP_RAID1   (1ULL << 4)
 
#define BTRFS_BLOCK_GROUP_DUP   (1ULL << 5)
 
#define BTRFS_BLOCK_GROUP_RAID10   (1ULL << 6)
 
#define BTRFS_BLOCK_GROUP_RESERVED   BTRFS_AVAIL_ALLOC_BIT_SINGLE
 
#define BTRFS_NR_RAID_TYPES   5
 
#define BTRFS_BLOCK_GROUP_TYPE_MASK
 
#define BTRFS_BLOCK_GROUP_PROFILE_MASK
 
#define BTRFS_AVAIL_ALLOC_BIT_SINGLE   (1ULL << 48)
 
#define BTRFS_EXTENDED_PROFILE_MASK
 
#define BTRFS_QGROUP_STATUS_FLAG_ON   (1ULL << 0)
 
#define BTRFS_QGROUP_STATUS_FLAG_SCANNING   (1ULL << 1)
 
#define BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT   (1ULL << 2)
 
#define BTRFS_QGROUP_STATUS_VERSION   1
 
#define BTRFS_QGROUP_LIMIT_MAX_RFER   (1ULL << 0)
 
#define BTRFS_QGROUP_LIMIT_MAX_EXCL   (1ULL << 1)
 
#define BTRFS_QGROUP_LIMIT_RSV_RFER   (1ULL << 2)
 
#define BTRFS_QGROUP_LIMIT_RSV_EXCL   (1ULL << 3)
 
#define BTRFS_QGROUP_LIMIT_RFER_CMPR   (1ULL << 4)
 
#define BTRFS_QGROUP_LIMIT_EXCL_CMPR   (1ULL << 5)
 
#define BTRFS_BLOCK_RSV_GLOBAL   1
 
#define BTRFS_BLOCK_RSV_DELALLOC   2
 
#define BTRFS_BLOCK_RSV_TRANS   3
 
#define BTRFS_BLOCK_RSV_CHUNK   4
 
#define BTRFS_BLOCK_RSV_DELOPS   5
 
#define BTRFS_BLOCK_RSV_EMPTY   6
 
#define BTRFS_BLOCK_RSV_TEMP   7
 
#define BTRFS_INODE_ITEM_KEY   1
 
#define BTRFS_INODE_REF_KEY   12
 
#define BTRFS_INODE_EXTREF_KEY   13
 
#define BTRFS_XATTR_ITEM_KEY   24
 
#define BTRFS_ORPHAN_ITEM_KEY   48
 
#define BTRFS_DIR_LOG_ITEM_KEY   60
 
#define BTRFS_DIR_LOG_INDEX_KEY   72
 
#define BTRFS_DIR_ITEM_KEY   84
 
#define BTRFS_DIR_INDEX_KEY   96
 
#define BTRFS_EXTENT_DATA_KEY   108
 
#define BTRFS_EXTENT_CSUM_KEY   128
 
#define BTRFS_ROOT_ITEM_KEY   132
 
#define BTRFS_ROOT_BACKREF_KEY   144
 
#define BTRFS_ROOT_REF_KEY   156
 
#define BTRFS_EXTENT_ITEM_KEY   168
 
#define BTRFS_TREE_BLOCK_REF_KEY   176
 
#define BTRFS_EXTENT_DATA_REF_KEY   178
 
#define BTRFS_EXTENT_REF_V0_KEY   180
 
#define BTRFS_SHARED_BLOCK_REF_KEY   182
 
#define BTRFS_SHARED_DATA_REF_KEY   184
 
#define BTRFS_BLOCK_GROUP_ITEM_KEY   192
 
#define BTRFS_DEV_EXTENT_KEY   204
 
#define BTRFS_DEV_ITEM_KEY   216
 
#define BTRFS_CHUNK_ITEM_KEY   228
 
#define BTRFS_QGROUP_STATUS_KEY   240
 
#define BTRFS_QGROUP_INFO_KEY   242
 
#define BTRFS_QGROUP_LIMIT_KEY   244
 
#define BTRFS_QGROUP_RELATION_KEY   246
 
#define BTRFS_BALANCE_ITEM_KEY   248
 
#define BTRFS_DEV_STATS_KEY   249
 
#define BTRFS_STRING_ITEM_KEY   253
 
#define BTRFS_MOUNT_NODATASUM   (1 << 0)
 
#define BTRFS_MOUNT_NODATACOW   (1 << 1)
 
#define BTRFS_MOUNT_NOBARRIER   (1 << 2)
 
#define BTRFS_MOUNT_SSD   (1 << 3)
 
#define BTRFS_MOUNT_DEGRADED   (1 << 4)
 
#define BTRFS_MOUNT_COMPRESS   (1 << 5)
 
#define BTRFS_MOUNT_NOTREELOG   (1 << 6)
 
#define BTRFS_MOUNT_FLUSHONCOMMIT   (1 << 7)
 
#define BTRFS_MOUNT_SSD_SPREAD   (1 << 8)
 
#define BTRFS_MOUNT_NOSSD   (1 << 9)
 
#define BTRFS_MOUNT_DISCARD   (1 << 10)
 
#define BTRFS_MOUNT_FORCE_COMPRESS   (1 << 11)
 
#define BTRFS_MOUNT_SPACE_CACHE   (1 << 12)
 
#define BTRFS_MOUNT_CLEAR_CACHE   (1 << 13)
 
#define BTRFS_MOUNT_USER_SUBVOL_RM_ALLOWED   (1 << 14)
 
#define BTRFS_MOUNT_ENOSPC_DEBUG   (1 << 15)
 
#define BTRFS_MOUNT_AUTO_DEFRAG   (1 << 16)
 
#define BTRFS_MOUNT_INODE_MAP_CACHE   (1 << 17)
 
#define BTRFS_MOUNT_RECOVERY   (1 << 18)
 
#define BTRFS_MOUNT_SKIP_BALANCE   (1 << 19)
 
#define BTRFS_MOUNT_CHECK_INTEGRITY   (1 << 20)
 
#define BTRFS_MOUNT_CHECK_INTEGRITY_INCLUDING_EXTENT_DATA   (1 << 21)
 
#define BTRFS_MOUNT_PANIC_ON_FATAL_ERROR   (1 << 22)
 
#define btrfs_clear_opt(o, opt)   ((o) &= ~BTRFS_MOUNT_##opt)
 
#define btrfs_set_opt(o, opt)   ((o) |= BTRFS_MOUNT_##opt)
 
#define btrfs_test_opt(root, opt)
 
#define BTRFS_INODE_NODATASUM   (1 << 0)
 
#define BTRFS_INODE_NODATACOW   (1 << 1)
 
#define BTRFS_INODE_READONLY   (1 << 2)
 
#define BTRFS_INODE_NOCOMPRESS   (1 << 3)
 
#define BTRFS_INODE_PREALLOC   (1 << 4)
 
#define BTRFS_INODE_SYNC   (1 << 5)
 
#define BTRFS_INODE_IMMUTABLE   (1 << 6)
 
#define BTRFS_INODE_APPEND   (1 << 7)
 
#define BTRFS_INODE_NODUMP   (1 << 8)
 
#define BTRFS_INODE_NOATIME   (1 << 9)
 
#define BTRFS_INODE_DIRSYNC   (1 << 10)
 
#define BTRFS_INODE_COMPRESS   (1 << 11)
 
#define BTRFS_INODE_ROOT_ITEM_INIT   (1 << 31)
 
#define le8_to_cpu(v)   (v)
 
#define cpu_to_le8(v)   (v)
 
#define __le8   u8
 
#define read_eb_member(eb, ptr, type, member, result)
 
#define write_eb_member(eb, ptr, type, member, result)
 
#define DECLARE_BTRFS_SETGET_BITS(bits)
 
#define BTRFS_SETGET_FUNCS(name, type, member, bits)
 
#define BTRFS_SETGET_HEADER_FUNCS(name, type, member, bits)
 
#define BTRFS_SETGET_STACK_FUNCS(name, type, member, bits)
 
#define btrfs_item_ptr(leaf, slot, type)
 
#define btrfs_item_ptr_offset(leaf, slot)
 
#define btrfs_set_fs_incompat(__fs_info, opt)   __btrfs_set_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt)
 
#define btrfs_abort_transaction(trans, root, errno)
 
#define btrfs_std_error(fs_info, errno)
 
#define btrfs_error(fs_info, errno, fmt, args...)
 
#define btrfs_panic(fs_info, errno, fmt, args...)
 
#define btrfs_get_acl   NULL
 

Typedefs

typedef int(* btrfs_changed_cb_t )(struct btrfs_root *left_root, struct btrfs_root *right_root, struct btrfs_path *left_path, struct btrfs_path *right_path, struct btrfs_key *key, enum btrfs_compare_tree_result result, void *ctx)
 

Enumerations

enum  btrfs_compression_type {
  BTRFS_COMPRESS_NONE = 0, BTRFS_COMPRESS_ZLIB = 1, BTRFS_COMPRESS_LZO = 2, BTRFS_COMPRESS_TYPES = 2,
  BTRFS_COMPRESS_LAST = 3
}
 
enum  btrfs_caching_type { BTRFS_CACHE_NO = 0, BTRFS_CACHE_STARTED = 1, BTRFS_CACHE_FAST = 2, BTRFS_CACHE_FINISHED = 3 }
 
enum  btrfs_disk_cache_state {
  BTRFS_DC_WRITTEN = 0, BTRFS_DC_ERROR = 1, BTRFS_DC_CLEAR = 2, BTRFS_DC_SETUP = 3,
  BTRFS_DC_NEED_WRITE = 4
}
 
enum  btrfs_compare_tree_result { BTRFS_COMPARE_TREE_NEW, BTRFS_COMPARE_TREE_DELETED, BTRFS_COMPARE_TREE_CHANGED }
 

Functions

struct btrfs_disk_key __attribute__ ((__packed__))
 
 BTRFS_SETGET_FUNCS (device_type, struct btrfs_dev_item, type, 64)
 
 BTRFS_SETGET_FUNCS (device_total_bytes, struct btrfs_dev_item, total_bytes, 64)
 
 BTRFS_SETGET_FUNCS (device_bytes_used, struct btrfs_dev_item, bytes_used, 64)
 
 BTRFS_SETGET_FUNCS (device_io_align, struct btrfs_dev_item, io_align, 32)
 
 BTRFS_SETGET_FUNCS (device_io_width, struct btrfs_dev_item, io_width, 32)
 
 BTRFS_SETGET_FUNCS (device_start_offset, struct btrfs_dev_item, start_offset, 64)
 
 BTRFS_SETGET_FUNCS (device_sector_size, struct btrfs_dev_item, sector_size, 32)
 
 BTRFS_SETGET_FUNCS (device_id, struct btrfs_dev_item, devid, 64)
 
 BTRFS_SETGET_FUNCS (device_group, struct btrfs_dev_item, dev_group, 32)
 
 BTRFS_SETGET_FUNCS (device_seek_speed, struct btrfs_dev_item, seek_speed, 8)
 
 BTRFS_SETGET_FUNCS (device_bandwidth, struct btrfs_dev_item, bandwidth, 8)
 
 BTRFS_SETGET_FUNCS (device_generation, struct btrfs_dev_item, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_type, struct btrfs_dev_item, type, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_total_bytes, struct btrfs_dev_item, total_bytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_bytes_used, struct btrfs_dev_item, bytes_used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_io_align, struct btrfs_dev_item, io_align, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_io_width, struct btrfs_dev_item, io_width, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_sector_size, struct btrfs_dev_item, sector_size, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_id, struct btrfs_dev_item, devid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_group, struct btrfs_dev_item, dev_group, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_seek_speed, struct btrfs_dev_item, seek_speed, 8)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_bandwidth, struct btrfs_dev_item, bandwidth, 8)
 
 BTRFS_SETGET_STACK_FUNCS (stack_device_generation, struct btrfs_dev_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (chunk_length, struct btrfs_chunk, length, 64)
 
 BTRFS_SETGET_FUNCS (chunk_owner, struct btrfs_chunk, owner, 64)
 
 BTRFS_SETGET_FUNCS (chunk_stripe_len, struct btrfs_chunk, stripe_len, 64)
 
 BTRFS_SETGET_FUNCS (chunk_io_align, struct btrfs_chunk, io_align, 32)
 
 BTRFS_SETGET_FUNCS (chunk_io_width, struct btrfs_chunk, io_width, 32)
 
 BTRFS_SETGET_FUNCS (chunk_sector_size, struct btrfs_chunk, sector_size, 32)
 
 BTRFS_SETGET_FUNCS (chunk_type, struct btrfs_chunk, type, 64)
 
 BTRFS_SETGET_FUNCS (chunk_num_stripes, struct btrfs_chunk, num_stripes, 16)
 
 BTRFS_SETGET_FUNCS (chunk_sub_stripes, struct btrfs_chunk, sub_stripes, 16)
 
 BTRFS_SETGET_FUNCS (stripe_devid, struct btrfs_stripe, devid, 64)
 
 BTRFS_SETGET_FUNCS (stripe_offset, struct btrfs_stripe, offset, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_length, struct btrfs_chunk, length, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_owner, struct btrfs_chunk, owner, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_stripe_len, struct btrfs_chunk, stripe_len, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_io_align, struct btrfs_chunk, io_align, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_io_width, struct btrfs_chunk, io_width, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_sector_size, struct btrfs_chunk, sector_size, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_type, struct btrfs_chunk, type, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_num_stripes, struct btrfs_chunk, num_stripes, 16)
 
 BTRFS_SETGET_STACK_FUNCS (stack_chunk_sub_stripes, struct btrfs_chunk, sub_stripes, 16)
 
 BTRFS_SETGET_STACK_FUNCS (stack_stripe_devid, struct btrfs_stripe, devid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_stripe_offset, struct btrfs_stripe, offset, 64)
 
 BTRFS_SETGET_STACK_FUNCS (block_group_used, struct btrfs_block_group_item, used, 64)
 
 BTRFS_SETGET_FUNCS (disk_block_group_used, struct btrfs_block_group_item, used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (block_group_chunk_objectid, struct btrfs_block_group_item, chunk_objectid, 64)
 
 BTRFS_SETGET_FUNCS (disk_block_group_chunk_objectid, struct btrfs_block_group_item, chunk_objectid, 64)
 
 BTRFS_SETGET_FUNCS (disk_block_group_flags, struct btrfs_block_group_item, flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (block_group_flags, struct btrfs_block_group_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (inode_ref_name_len, struct btrfs_inode_ref, name_len, 16)
 
 BTRFS_SETGET_FUNCS (inode_ref_index, struct btrfs_inode_ref, index, 64)
 
 BTRFS_SETGET_FUNCS (inode_extref_parent, struct btrfs_inode_extref, parent_objectid, 64)
 
 BTRFS_SETGET_FUNCS (inode_extref_name_len, struct btrfs_inode_extref, name_len, 16)
 
 BTRFS_SETGET_FUNCS (inode_extref_index, struct btrfs_inode_extref, index, 64)
 
 BTRFS_SETGET_FUNCS (inode_generation, struct btrfs_inode_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (inode_sequence, struct btrfs_inode_item, sequence, 64)
 
 BTRFS_SETGET_FUNCS (inode_transid, struct btrfs_inode_item, transid, 64)
 
 BTRFS_SETGET_FUNCS (inode_size, struct btrfs_inode_item, size, 64)
 
 BTRFS_SETGET_FUNCS (inode_nbytes, struct btrfs_inode_item, nbytes, 64)
 
 BTRFS_SETGET_FUNCS (inode_block_group, struct btrfs_inode_item, block_group, 64)
 
 BTRFS_SETGET_FUNCS (inode_nlink, struct btrfs_inode_item, nlink, 32)
 
 BTRFS_SETGET_FUNCS (inode_uid, struct btrfs_inode_item, uid, 32)
 
 BTRFS_SETGET_FUNCS (inode_gid, struct btrfs_inode_item, gid, 32)
 
 BTRFS_SETGET_FUNCS (inode_mode, struct btrfs_inode_item, mode, 32)
 
 BTRFS_SETGET_FUNCS (inode_rdev, struct btrfs_inode_item, rdev, 64)
 
 BTRFS_SETGET_FUNCS (inode_flags, struct btrfs_inode_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (timespec_sec, struct btrfs_timespec, sec, 64)
 
 BTRFS_SETGET_FUNCS (timespec_nsec, struct btrfs_timespec, nsec, 32)
 
 BTRFS_SETGET_FUNCS (dev_extent_chunk_tree, struct btrfs_dev_extent, chunk_tree, 64)
 
 BTRFS_SETGET_FUNCS (dev_extent_chunk_objectid, struct btrfs_dev_extent, chunk_objectid, 64)
 
 BTRFS_SETGET_FUNCS (dev_extent_chunk_offset, struct btrfs_dev_extent, chunk_offset, 64)
 
 BTRFS_SETGET_FUNCS (dev_extent_length, struct btrfs_dev_extent, length, 64)
 
 BTRFS_SETGET_FUNCS (extent_refs, struct btrfs_extent_item, refs, 64)
 
 BTRFS_SETGET_FUNCS (extent_generation, struct btrfs_extent_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (extent_flags, struct btrfs_extent_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (extent_refs_v0, struct btrfs_extent_item_v0, refs, 32)
 
 BTRFS_SETGET_FUNCS (tree_block_level, struct btrfs_tree_block_info, level, 8)
 
 BTRFS_SETGET_FUNCS (extent_data_ref_root, struct btrfs_extent_data_ref, root, 64)
 
 BTRFS_SETGET_FUNCS (extent_data_ref_objectid, struct btrfs_extent_data_ref, objectid, 64)
 
 BTRFS_SETGET_FUNCS (extent_data_ref_offset, struct btrfs_extent_data_ref, offset, 64)
 
 BTRFS_SETGET_FUNCS (extent_data_ref_count, struct btrfs_extent_data_ref, count, 32)
 
 BTRFS_SETGET_FUNCS (shared_data_ref_count, struct btrfs_shared_data_ref, count, 32)
 
 BTRFS_SETGET_FUNCS (extent_inline_ref_type, struct btrfs_extent_inline_ref, type, 8)
 
 BTRFS_SETGET_FUNCS (extent_inline_ref_offset, struct btrfs_extent_inline_ref, offset, 64)
 
 BTRFS_SETGET_FUNCS (ref_root_v0, struct btrfs_extent_ref_v0, root, 64)
 
 BTRFS_SETGET_FUNCS (ref_generation_v0, struct btrfs_extent_ref_v0, generation, 64)
 
 BTRFS_SETGET_FUNCS (ref_objectid_v0, struct btrfs_extent_ref_v0, objectid, 64)
 
 BTRFS_SETGET_FUNCS (ref_count_v0, struct btrfs_extent_ref_v0, count, 32)
 
 BTRFS_SETGET_FUNCS (key_blockptr, struct btrfs_key_ptr, blockptr, 64)
 
 BTRFS_SETGET_FUNCS (key_generation, struct btrfs_key_ptr, generation, 64)
 
void btrfs_node_key (struct extent_buffer *eb, struct btrfs_disk_key *disk_key, int nr)
 
 BTRFS_SETGET_FUNCS (item_offset, struct btrfs_item, offset, 32)
 
 BTRFS_SETGET_FUNCS (item_size, struct btrfs_item, size, 32)
 
 BTRFS_SETGET_FUNCS (dir_log_end, struct btrfs_dir_log_item, end, 64)
 
 BTRFS_SETGET_FUNCS (root_ref_dirid, struct btrfs_root_ref, dirid, 64)
 
 BTRFS_SETGET_FUNCS (root_ref_sequence, struct btrfs_root_ref, sequence, 64)
 
 BTRFS_SETGET_FUNCS (root_ref_name_len, struct btrfs_root_ref, name_len, 16)
 
 BTRFS_SETGET_FUNCS (dir_data_len, struct btrfs_dir_item, data_len, 16)
 
 BTRFS_SETGET_FUNCS (dir_type, struct btrfs_dir_item, type, 8)
 
 BTRFS_SETGET_FUNCS (dir_name_len, struct btrfs_dir_item, name_len, 16)
 
 BTRFS_SETGET_FUNCS (dir_transid, struct btrfs_dir_item, transid, 64)
 
 BTRFS_SETGET_FUNCS (free_space_entries, struct btrfs_free_space_header, num_entries, 64)
 
 BTRFS_SETGET_FUNCS (free_space_bitmaps, struct btrfs_free_space_header, num_bitmaps, 64)
 
 BTRFS_SETGET_FUNCS (free_space_generation, struct btrfs_free_space_header, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (disk_key_objectid, struct btrfs_disk_key, objectid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (disk_key_offset, struct btrfs_disk_key, offset, 64)
 
 BTRFS_SETGET_STACK_FUNCS (disk_key_type, struct btrfs_disk_key, type, 8)
 
 BTRFS_SETGET_HEADER_FUNCS (header_bytenr, struct btrfs_header, bytenr, 64)
 
 BTRFS_SETGET_HEADER_FUNCS (header_generation, struct btrfs_header, generation, 64)
 
 BTRFS_SETGET_HEADER_FUNCS (header_owner, struct btrfs_header, owner, 64)
 
 BTRFS_SETGET_HEADER_FUNCS (header_nritems, struct btrfs_header, nritems, 32)
 
 BTRFS_SETGET_HEADER_FUNCS (header_flags, struct btrfs_header, flags, 64)
 
 BTRFS_SETGET_HEADER_FUNCS (header_level, struct btrfs_header, level, 8)
 
 BTRFS_SETGET_FUNCS (disk_root_generation, struct btrfs_root_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (disk_root_refs, struct btrfs_root_item, refs, 32)
 
 BTRFS_SETGET_FUNCS (disk_root_bytenr, struct btrfs_root_item, bytenr, 64)
 
 BTRFS_SETGET_FUNCS (disk_root_level, struct btrfs_root_item, level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (root_generation, struct btrfs_root_item, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_bytenr, struct btrfs_root_item, bytenr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_level, struct btrfs_root_item, level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (root_dirid, struct btrfs_root_item, root_dirid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_refs, struct btrfs_root_item, refs, 32)
 
 BTRFS_SETGET_STACK_FUNCS (root_flags, struct btrfs_root_item, flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_used, struct btrfs_root_item, bytes_used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_limit, struct btrfs_root_item, byte_limit, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_last_snapshot, struct btrfs_root_item, last_snapshot, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_generation_v2, struct btrfs_root_item, generation_v2, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_ctransid, struct btrfs_root_item, ctransid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_otransid, struct btrfs_root_item, otransid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_stransid, struct btrfs_root_item, stransid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (root_rtransid, struct btrfs_root_item, rtransid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_tree_root, struct btrfs_root_backup, tree_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_tree_root_gen, struct btrfs_root_backup, tree_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_tree_root_level, struct btrfs_root_backup, tree_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_chunk_root, struct btrfs_root_backup, chunk_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_chunk_root_gen, struct btrfs_root_backup, chunk_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_chunk_root_level, struct btrfs_root_backup, chunk_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_extent_root, struct btrfs_root_backup, extent_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_extent_root_gen, struct btrfs_root_backup, extent_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_extent_root_level, struct btrfs_root_backup, extent_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_fs_root, struct btrfs_root_backup, fs_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_fs_root_gen, struct btrfs_root_backup, fs_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_fs_root_level, struct btrfs_root_backup, fs_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_dev_root, struct btrfs_root_backup, dev_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_dev_root_gen, struct btrfs_root_backup, dev_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_dev_root_level, struct btrfs_root_backup, dev_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_csum_root, struct btrfs_root_backup, csum_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_csum_root_gen, struct btrfs_root_backup, csum_root_gen, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_csum_root_level, struct btrfs_root_backup, csum_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (backup_total_bytes, struct btrfs_root_backup, total_bytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_bytes_used, struct btrfs_root_backup, bytes_used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (backup_num_devices, struct btrfs_root_backup, num_devices, 64)
 
 BTRFS_SETGET_FUNCS (balance_flags, struct btrfs_balance_item, flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_bytenr, struct btrfs_super_block, bytenr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_flags, struct btrfs_super_block, flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_generation, struct btrfs_super_block, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_root, struct btrfs_super_block, root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_sys_array_size, struct btrfs_super_block, sys_chunk_array_size, 32)
 
 BTRFS_SETGET_STACK_FUNCS (super_chunk_root_generation, struct btrfs_super_block, chunk_root_generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_root_level, struct btrfs_super_block, root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (super_chunk_root, struct btrfs_super_block, chunk_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_chunk_root_level, struct btrfs_super_block, chunk_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (super_log_root, struct btrfs_super_block, log_root, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_log_root_transid, struct btrfs_super_block, log_root_transid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_log_root_level, struct btrfs_super_block, log_root_level, 8)
 
 BTRFS_SETGET_STACK_FUNCS (super_total_bytes, struct btrfs_super_block, total_bytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_bytes_used, struct btrfs_super_block, bytes_used, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_sectorsize, struct btrfs_super_block, sectorsize, 32)
 
 BTRFS_SETGET_STACK_FUNCS (super_nodesize, struct btrfs_super_block, nodesize, 32)
 
 BTRFS_SETGET_STACK_FUNCS (super_leafsize, struct btrfs_super_block, leafsize, 32)
 
 BTRFS_SETGET_STACK_FUNCS (super_stripesize, struct btrfs_super_block, stripesize, 32)
 
 BTRFS_SETGET_STACK_FUNCS (super_root_dir, struct btrfs_super_block, root_dir_objectid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_num_devices, struct btrfs_super_block, num_devices, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_compat_flags, struct btrfs_super_block, compat_flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_compat_ro_flags, struct btrfs_super_block, compat_ro_flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_incompat_flags, struct btrfs_super_block, incompat_flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (super_csum_type, struct btrfs_super_block, csum_type, 16)
 
 BTRFS_SETGET_STACK_FUNCS (super_cache_generation, struct btrfs_super_block, cache_generation, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_type, struct btrfs_file_extent_item, type, 8)
 
 BTRFS_SETGET_FUNCS (file_extent_disk_bytenr, struct btrfs_file_extent_item, disk_bytenr, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_generation, struct btrfs_file_extent_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_disk_num_bytes, struct btrfs_file_extent_item, disk_num_bytes, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_offset, struct btrfs_file_extent_item, offset, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_num_bytes, struct btrfs_file_extent_item, num_bytes, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_ram_bytes, struct btrfs_file_extent_item, ram_bytes, 64)
 
 BTRFS_SETGET_FUNCS (file_extent_compression, struct btrfs_file_extent_item, compression, 8)
 
 BTRFS_SETGET_FUNCS (file_extent_encryption, struct btrfs_file_extent_item, encryption, 8)
 
 BTRFS_SETGET_FUNCS (file_extent_other_encoding, struct btrfs_file_extent_item, other_encoding, 16)
 
 BTRFS_SETGET_FUNCS (qgroup_status_generation, struct btrfs_qgroup_status_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_status_version, struct btrfs_qgroup_status_item, version, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_status_flags, struct btrfs_qgroup_status_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_status_scan, struct btrfs_qgroup_status_item, scan, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_generation, struct btrfs_qgroup_info_item, generation, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_rfer, struct btrfs_qgroup_info_item, rfer, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_rfer_cmpr, struct btrfs_qgroup_info_item, rfer_cmpr, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_excl, struct btrfs_qgroup_info_item, excl, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_info_excl_cmpr, struct btrfs_qgroup_info_item, excl_cmpr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_generation, struct btrfs_qgroup_info_item, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_rfer, struct btrfs_qgroup_info_item, rfer, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_rfer_cmpr, struct btrfs_qgroup_info_item, rfer_cmpr, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_excl, struct btrfs_qgroup_info_item, excl, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_qgroup_info_excl_cmpr, struct btrfs_qgroup_info_item, excl_cmpr, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_flags, struct btrfs_qgroup_limit_item, flags, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_max_rfer, struct btrfs_qgroup_limit_item, max_rfer, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_max_excl, struct btrfs_qgroup_limit_item, max_excl, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_rsv_rfer, struct btrfs_qgroup_limit_item, rsv_rfer, 64)
 
 BTRFS_SETGET_FUNCS (qgroup_limit_rsv_excl, struct btrfs_qgroup_limit_item, rsv_excl, 64)
 
void btrfs_put_block_group (struct btrfs_block_group_cache *cache)
 
int btrfs_run_delayed_refs (struct btrfs_trans_handle *trans, struct btrfs_root *root, unsigned long count)
 
int btrfs_lookup_extent (struct btrfs_root *root, u64 start, u64 len)
 
int btrfs_lookup_extent_info (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 num_bytes, u64 *refs, u64 *flags)
 
int btrfs_pin_extent (struct btrfs_root *root, u64 bytenr, u64 num, int reserved)
 
int btrfs_pin_extent_for_log_replay (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 num_bytes)
 
int btrfs_cross_ref_exist (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid, u64 offset, u64 bytenr)
 
struct btrfs_block_group_cachebtrfs_lookup_block_group (struct btrfs_fs_info *info, u64 bytenr)
 
u64 btrfs_find_block_group (struct btrfs_root *root, u64 search_start, u64 search_hint, int owner)
 
struct extent_bufferbtrfs_alloc_free_block (struct btrfs_trans_handle *trans, struct btrfs_root *root, u32 blocksize, u64 parent, u64 root_objectid, struct btrfs_disk_key *key, int level, u64 hint, u64 empty_size)
 
void btrfs_free_tree_block (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, u64 parent, int last_ref)
 
struct extent_bufferbtrfs_init_new_buffer (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u32 blocksize, int level)
 
int btrfs_alloc_reserved_file_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 root_objectid, u64 owner, u64 offset, struct btrfs_key *ins)
 
int btrfs_alloc_logged_file_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 root_objectid, u64 owner, u64 offset, struct btrfs_key *ins)
 
int btrfs_reserve_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 num_bytes, u64 min_alloc_size, u64 empty_size, u64 hint_byte, struct btrfs_key *ins, u64 data)
 
int btrfs_inc_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, int full_backref, int for_cow)
 
int btrfs_dec_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, int full_backref, int for_cow)
 
int btrfs_set_disk_extent_flags (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 num_bytes, u64 flags, int is_data)
 
int btrfs_free_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 num_bytes, u64 parent, u64 root_objectid, u64 owner, u64 offset, int for_cow)
 
int btrfs_free_reserved_extent (struct btrfs_root *root, u64 start, u64 len)
 
int btrfs_free_and_pin_reserved_extent (struct btrfs_root *root, u64 start, u64 len)
 
void btrfs_prepare_extent_commit (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_finish_extent_commit (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_inc_extent_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 num_bytes, u64 parent, u64 root_objectid, u64 owner, u64 offset, int for_cow)
 
int btrfs_write_dirty_block_groups (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_extent_readonly (struct btrfs_root *root, u64 bytenr)
 
int btrfs_free_block_groups (struct btrfs_fs_info *info)
 
int btrfs_read_block_groups (struct btrfs_root *root)
 
int btrfs_can_relocate (struct btrfs_root *root, u64 bytenr)
 
int btrfs_make_block_group (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytes_used, u64 type, u64 chunk_objectid, u64 chunk_offset, u64 size)
 
int btrfs_remove_block_group (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 group_start)
 
void btrfs_create_pending_block_groups (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
u64 btrfs_reduce_alloc_profile (struct btrfs_root *root, u64 flags)
 
u64 btrfs_get_alloc_profile (struct btrfs_root *root, int data)
 
void btrfs_clear_space_info_full (struct btrfs_fs_info *info)
 
int btrfs_check_data_free_space (struct inode *inode, u64 bytes)
 
void btrfs_free_reserved_data_space (struct inode *inode, u64 bytes)
 
void btrfs_trans_release_metadata (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_orphan_reserve_metadata (struct btrfs_trans_handle *trans, struct inode *inode)
 
void btrfs_orphan_release_metadata (struct inode *inode)
 
int btrfs_snap_reserve_metadata (struct btrfs_trans_handle *trans, struct btrfs_pending_snapshot *pending)
 
int btrfs_delalloc_reserve_metadata (struct inode *inode, u64 num_bytes)
 
void btrfs_delalloc_release_metadata (struct inode *inode, u64 num_bytes)
 
int btrfs_delalloc_reserve_space (struct inode *inode, u64 num_bytes)
 
void btrfs_delalloc_release_space (struct inode *inode, u64 num_bytes)
 
void btrfs_init_block_rsv (struct btrfs_block_rsv *rsv, unsigned short type)
 
struct btrfs_block_rsvbtrfs_alloc_block_rsv (struct btrfs_root *root, unsigned short type)
 
void btrfs_free_block_rsv (struct btrfs_root *root, struct btrfs_block_rsv *rsv)
 
int btrfs_block_rsv_add (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, u64 num_bytes)
 
int btrfs_block_rsv_add_noflush (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, u64 num_bytes)
 
int btrfs_block_rsv_check (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, int min_factor)
 
int btrfs_block_rsv_refill (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, u64 min_reserved)
 
int btrfs_block_rsv_refill_noflush (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, u64 min_reserved)
 
int btrfs_block_rsv_migrate (struct btrfs_block_rsv *src_rsv, struct btrfs_block_rsv *dst_rsv, u64 num_bytes)
 
void btrfs_block_rsv_release (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, u64 num_bytes)
 
int btrfs_set_block_group_ro (struct btrfs_root *root, struct btrfs_block_group_cache *cache)
 
void btrfs_set_block_group_rw (struct btrfs_root *root, struct btrfs_block_group_cache *cache)
 
void btrfs_put_block_group_cache (struct btrfs_fs_info *info)
 
u64 btrfs_account_ro_block_groups_free_space (struct btrfs_space_info *sinfo)
 
int btrfs_error_unpin_extent_range (struct btrfs_root *root, u64 start, u64 end)
 
int btrfs_error_discard_extent (struct btrfs_root *root, u64 bytenr, u64 num_bytes, u64 *actual_bytes)
 
int btrfs_force_chunk_alloc (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 type)
 
int btrfs_trim_fs (struct btrfs_root *root, struct fstrim_range *range)
 
int btrfs_init_space_info (struct btrfs_fs_info *fs_info)
 
int btrfs_delayed_refs_qgroup_accounting (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
int btrfs_bin_search (struct extent_buffer *eb, struct btrfs_key *key, int level, int *slot)
 
int btrfs_comp_cpu_keys (struct btrfs_key *k1, struct btrfs_key *k2)
 
int btrfs_previous_item (struct btrfs_root *root, struct btrfs_path *path, u64 min_objectid, int type)
 
void btrfs_set_item_key_safe (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *new_key)
 
struct extent_bufferbtrfs_root_node (struct btrfs_root *root)
 
struct extent_bufferbtrfs_lock_root_node (struct btrfs_root *root)
 
int btrfs_find_next_key (struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *key, int lowest_level, int cache_only, u64 min_trans)
 
int btrfs_search_forward (struct btrfs_root *root, struct btrfs_key *min_key, struct btrfs_key *max_key, struct btrfs_path *path, int cache_only, u64 min_trans)
 
int btrfs_compare_trees (struct btrfs_root *left_root, struct btrfs_root *right_root, btrfs_changed_cb_t cb, void *ctx)
 
int btrfs_cow_block (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, struct extent_buffer *parent, int parent_slot, struct extent_buffer **cow_ret)
 
int btrfs_copy_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, struct extent_buffer **cow_ret, u64 new_root_objectid)
 
int btrfs_block_can_be_shared (struct btrfs_root *root, struct extent_buffer *buf)
 
void btrfs_extend_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u32 data_size)
 
void btrfs_truncate_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u32 new_size, int from_end)
 
int btrfs_split_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *new_key, unsigned long split_offset)
 
int btrfs_duplicate_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *new_key)
 
int btrfs_search_slot (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow)
 
int btrfs_search_old_slot (struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, u64 time_seq)
 
int btrfs_search_slot_for_read (struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int find_higher, int return_any)
 
int btrfs_realloc_node (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *parent, int start_slot, int cache_only, u64 *last_ret, struct btrfs_key *progress)
 
void btrfs_release_path (struct btrfs_path *p)
 
struct btrfs_pathbtrfs_alloc_path (void)
 
void btrfs_free_path (struct btrfs_path *p)
 
void btrfs_set_path_blocking (struct btrfs_path *p)
 
void btrfs_clear_path_blocking (struct btrfs_path *p, struct extent_buffer *held, int held_rw)
 
void btrfs_unlock_up_safe (struct btrfs_path *p, int level)
 
int btrfs_del_items (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int slot, int nr)
 
void setup_items_for_insert (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *cpu_key, u32 *data_size, u32 total_data, u32 total_size, int nr)
 
int btrfs_insert_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, void *data, u32 data_size)
 
int btrfs_insert_empty_items (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *cpu_key, u32 *data_size, int nr)
 
int btrfs_next_leaf (struct btrfs_root *root, struct btrfs_path *path)
 
int btrfs_next_old_leaf (struct btrfs_root *root, struct btrfs_path *path, u64 time_seq)
 
int btrfs_prev_leaf (struct btrfs_root *root, struct btrfs_path *path)
 
int btrfs_leaf_free_space (struct btrfs_root *root, struct extent_buffer *leaf)
 
int __must_check btrfs_drop_snapshot (struct btrfs_root *root, struct btrfs_block_rsv *block_rsv, int update_ref, int for_reloc)
 
int btrfs_drop_subtree (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *node, struct extent_buffer *parent)
 
u64 btrfs_get_tree_mod_seq (struct btrfs_fs_info *fs_info, struct seq_list *elem)
 
void btrfs_put_tree_mod_seq (struct btrfs_fs_info *fs_info, struct seq_list *elem)
 
int btrfs_old_root_level (struct btrfs_root *root, u64 time_seq)
 
int btrfs_find_root_ref (struct btrfs_root *tree_root, struct btrfs_path *path, u64 root_id, u64 ref_id)
 
int btrfs_add_root_ref (struct btrfs_trans_handle *trans, struct btrfs_root *tree_root, u64 root_id, u64 ref_id, u64 dirid, u64 sequence, const char *name, int name_len)
 
int btrfs_del_root_ref (struct btrfs_trans_handle *trans, struct btrfs_root *tree_root, u64 root_id, u64 ref_id, u64 dirid, u64 *sequence, const char *name, int name_len)
 
int btrfs_del_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key)
 
int btrfs_insert_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_root_item *item)
 
int __must_check btrfs_update_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_root_item *item)
 
void btrfs_read_root_item (struct btrfs_root *root, struct extent_buffer *eb, int slot, struct btrfs_root_item *item)
 
int btrfs_find_last_root (struct btrfs_root *root, u64 objectid, struct btrfs_root_item *item, struct btrfs_key *key)
 
int btrfs_find_dead_roots (struct btrfs_root *root, u64 objectid)
 
int btrfs_find_orphan_roots (struct btrfs_root *tree_root)
 
void btrfs_set_root_node (struct btrfs_root_item *item, struct extent_buffer *node)
 
void btrfs_check_and_init_root_item (struct btrfs_root_item *item)
 
void btrfs_update_root_times (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_insert_dir_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct inode *dir, struct btrfs_key *location, u8 type, u64 index)
 
struct btrfs_dir_itembtrfs_lookup_dir_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, int name_len, int mod)
 
struct btrfs_dir_itembtrfs_lookup_dir_index_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, u64 objectid, const char *name, int name_len, int mod)
 
struct btrfs_dir_itembtrfs_search_dir_index_item (struct btrfs_root *root, struct btrfs_path *path, u64 dirid, const char *name, int name_len)
 
struct btrfs_dir_itembtrfs_match_dir_item_name (struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len)
 
int btrfs_delete_one_dir_name (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_dir_item *di)
 
int btrfs_insert_xattr_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid, const char *name, u16 name_len, const void *data, u16 data_len)
 
struct btrfs_dir_itembtrfs_lookup_xattr (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, u16 name_len, int mod)
 
int verify_dir_item (struct btrfs_root *root, struct extent_buffer *leaf, struct btrfs_dir_item *dir_item)
 
int btrfs_insert_orphan_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 offset)
 
int btrfs_del_orphan_item (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 offset)
 
int btrfs_find_orphan_item (struct btrfs_root *root, u64 offset)
 
int btrfs_insert_inode_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 index)
 
int btrfs_del_inode_ref (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, u64 *index)
 
int btrfs_get_inode_ref_index (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, int mod, u64 *ret_index)
 
int btrfs_insert_empty_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid)
 
int btrfs_lookup_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *location, int mod)
 
struct btrfs_inode_extrefbtrfs_lookup_inode_extref (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const char *name, int name_len, u64 inode_objectid, u64 ref_objectid, int ins_len, int cow)
 
int btrfs_find_name_in_ext_backref (struct btrfs_path *path, u64 ref_objectid, const char *name, int name_len, struct btrfs_inode_extref **extref_ret)
 
int btrfs_del_csums (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 bytenr, u64 len)
 
int btrfs_lookup_bio_sums (struct btrfs_root *root, struct inode *inode, struct bio *bio, u32 *dst)
 
int btrfs_lookup_bio_sums_dio (struct btrfs_root *root, struct inode *inode, struct bio *bio, u64 logical_offset)
 
int btrfs_insert_file_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid, u64 pos, u64 disk_offset, u64 disk_num_bytes, u64 num_bytes, u64 offset, u64 ram_bytes, u8 compression, u8 encryption, u16 other_encoding)
 
int btrfs_lookup_file_extent (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid, u64 bytenr, int mod)
 
int btrfs_csum_file_blocks (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_ordered_sum *sums)
 
int btrfs_csum_one_bio (struct btrfs_root *root, struct inode *inode, struct bio *bio, u64 file_start, int contig)
 
struct btrfs_csum_itembtrfs_lookup_csum (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 bytenr, int cow)
 
int btrfs_csum_truncate (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 isize)
 
int btrfs_lookup_csums_range (struct btrfs_root *root, u64 start, u64 end, struct list_head *list, int search_commit)
 
struct extent_mapbtrfs_get_extent_fiemap (struct inode *inode, struct page *page, size_t pg_offset, u64 start, u64 len, int create)
 
struct inodebtrfs_lookup_dentry (struct inode *dir, struct dentry *dentry)
 
int btrfs_set_inode_index (struct inode *dir, u64 *index)
 
int btrfs_unlink_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, struct inode *inode, const char *name, int name_len)
 
int btrfs_add_link (struct btrfs_trans_handle *trans, struct inode *parent_inode, struct inode *inode, const char *name, int name_len, int add_backref, u64 index)
 
int btrfs_unlink_subvol (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, u64 objectid, const char *name, int name_len)
 
int btrfs_truncate_page (struct inode *inode, loff_t from, loff_t len, int front)
 
int btrfs_truncate_inode_items (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 new_size, u32 min_type)
 
int btrfs_start_delalloc_inodes (struct btrfs_root *root, int delay_iput)
 
int btrfs_set_extent_delalloc (struct inode *inode, u64 start, u64 end, struct extent_state **cached_state)
 
int btrfs_writepages (struct address_space *mapping, struct writeback_control *wbc)
 
int btrfs_create_subvol_root (struct btrfs_trans_handle *trans, struct btrfs_root *new_root, u64 new_dirid)
 
int btrfs_merge_bio_hook (struct page *page, unsigned long offset, size_t size, struct bio *bio, unsigned long bio_flags)
 
int btrfs_page_mkwrite (struct vm_area_struct *vma, struct vm_fault *vmf)
 
int btrfs_readpage (struct file *file, struct page *page)
 
void btrfs_evict_inode (struct inode *inode)
 
int btrfs_write_inode (struct inode *inode, struct writeback_control *wbc)
 
int btrfs_dirty_inode (struct inode *inode)
 
struct inodebtrfs_alloc_inode (struct super_block *sb)
 
void btrfs_destroy_inode (struct inode *inode)
 
int btrfs_drop_inode (struct inode *inode)
 
int btrfs_init_cachep (void)
 
void btrfs_destroy_cachep (void)
 
long btrfs_ioctl_trans_end (struct file *file)
 
struct inodebtrfs_iget (struct super_block *s, struct btrfs_key *location, struct btrfs_root *root, int *was_new)
 
struct extent_mapbtrfs_get_extent (struct inode *inode, struct page *page, size_t pg_offset, u64 start, u64 end, int create)
 
int btrfs_update_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode)
 
int btrfs_update_inode_fallback (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode)
 
int btrfs_orphan_add (struct btrfs_trans_handle *trans, struct inode *inode)
 
int btrfs_orphan_del (struct btrfs_trans_handle *trans, struct inode *inode)
 
int btrfs_orphan_cleanup (struct btrfs_root *root)
 
void btrfs_orphan_commit_root (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_cont_expand (struct inode *inode, loff_t oldsize, loff_t size)
 
void btrfs_invalidate_inodes (struct btrfs_root *root)
 
void btrfs_add_delayed_iput (struct inode *inode)
 
void btrfs_run_delayed_iputs (struct btrfs_root *root)
 
int btrfs_prealloc_file_range (struct inode *inode, int mode, u64 start, u64 num_bytes, u64 min_size, loff_t actual_len, u64 *alloc_hint)
 
int btrfs_prealloc_file_range_trans (struct inode *inode, struct btrfs_trans_handle *trans, int mode, u64 start, u64 num_bytes, u64 min_size, loff_t actual_len, u64 *alloc_hint)
 
long btrfs_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
 
void btrfs_update_iflags (struct inode *inode)
 
void btrfs_inherit_iflags (struct inode *inode, struct inode *dir)
 
int btrfs_defrag_file (struct inode *inode, struct file *file, struct btrfs_ioctl_defrag_range_args *range, u64 newer_than, unsigned long max_pages)
 
void btrfs_get_block_group_info (struct list_head *groups_list, struct btrfs_ioctl_space_info *space)
 
int btrfs_add_inode_defrag (struct btrfs_trans_handle *trans, struct inode *inode)
 
int btrfs_run_defrag_inodes (struct btrfs_fs_info *fs_info)
 
int btrfs_sync_file (struct file *file, loff_t start, loff_t end, int datasync)
 
void btrfs_drop_extent_cache (struct inode *inode, u64 start, u64 end, int skip_pinned)
 
int btrfs_replace_extent_cache (struct inode *inode, struct extent_map *replace, u64 start, u64 end, int skip_pinned, int modified)
 
int __btrfs_drop_extents (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, struct btrfs_path *path, u64 start, u64 end, u64 *drop_end, int drop_cache)
 
int btrfs_drop_extents (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 start, u64 end, int drop_cache)
 
int btrfs_mark_extent_written (struct btrfs_trans_handle *trans, struct inode *inode, u64 start, u64 end)
 
int btrfs_release_file (struct inode *inode, struct file *file)
 
void btrfs_drop_pages (struct page **pages, size_t num_pages)
 
int btrfs_dirty_pages (struct btrfs_root *root, struct inode *inode, struct page **pages, size_t num_pages, loff_t pos, size_t write_bytes, struct extent_state **cached)
 
int btrfs_defrag_leaves (struct btrfs_trans_handle *trans, struct btrfs_root *root, int cache_only)
 
int btrfs_init_sysfs (void)
 
void btrfs_exit_sysfs (void)
 
ssize_t btrfs_listxattr (struct dentry *dentry, char *buffer, size_t size)
 
int btrfs_parse_options (struct btrfs_root *root, char *options)
 
int btrfs_sync_fs (struct super_block *sb, int wait)
 
static const char void __btrfs_abort_transaction (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *function, unsigned int line, int errno)
 
 __printf (5, 6) void __btrfs_panic(struct btrfs_fs_info *fs_info
 
int btrfs_relocate_block_group (struct btrfs_root *root, u64 group_start)
 
int btrfs_init_reloc_root (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_update_reloc_root (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_recover_relocation (struct btrfs_root *root)
 
int btrfs_reloc_clone_csums (struct inode *inode, u64 file_pos, u64 len)
 
void btrfs_reloc_cow_block (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct extent_buffer *buf, struct extent_buffer *cow)
 
void btrfs_reloc_pre_snapshot (struct btrfs_trans_handle *trans, struct btrfs_pending_snapshot *pending, u64 *bytes_to_reserve)
 
int btrfs_reloc_post_snapshot (struct btrfs_trans_handle *trans, struct btrfs_pending_snapshot *pending)
 
int btrfs_scrub_dev (struct btrfs_root *root, u64 devid, u64 start, u64 end, struct btrfs_scrub_progress *progress, int readonly)
 
void btrfs_scrub_pause (struct btrfs_root *root)
 
void btrfs_scrub_pause_super (struct btrfs_root *root)
 
void btrfs_scrub_continue (struct btrfs_root *root)
 
void btrfs_scrub_continue_super (struct btrfs_root *root)
 
int __btrfs_scrub_cancel (struct btrfs_fs_info *info)
 
int btrfs_scrub_cancel (struct btrfs_root *root)
 
int btrfs_scrub_cancel_dev (struct btrfs_root *root, struct btrfs_device *dev)
 
int btrfs_scrub_cancel_devid (struct btrfs_root *root, u64 devid)
 
int btrfs_scrub_progress (struct btrfs_root *root, u64 devid, struct btrfs_scrub_progress *progress)
 
struct reada_controlbtrfs_reada_add (struct btrfs_root *root, struct btrfs_key *start, struct btrfs_key *end)
 
int btrfs_reada_wait (void *handle)
 
void btrfs_reada_detach (void *handle)
 
int btree_readahead_hook (struct btrfs_root *root, struct extent_buffer *eb, u64 start, int err)
 
int btrfs_quota_enable (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
int btrfs_quota_disable (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
int btrfs_quota_rescan (struct btrfs_fs_info *fs_info)
 
int btrfs_add_qgroup_relation (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 src, u64 dst)
 
int btrfs_del_qgroup_relation (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 src, u64 dst)
 
int btrfs_create_qgroup (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 qgroupid, char *name)
 
int btrfs_remove_qgroup (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 qgroupid)
 
int btrfs_limit_qgroup (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 qgroupid, struct btrfs_qgroup_limit *limit)
 
int btrfs_read_qgroup_config (struct btrfs_fs_info *fs_info)
 
void btrfs_free_qgroup_config (struct btrfs_fs_info *fs_info)
 
int btrfs_qgroup_record_ref (struct btrfs_trans_handle *trans, struct btrfs_delayed_ref_node *node, struct btrfs_delayed_extent_op *extent_op)
 
int btrfs_qgroup_account_ref (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_node *node, struct btrfs_delayed_extent_op *extent_op)
 
int btrfs_run_qgroups (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
int btrfs_qgroup_inherit (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, u64 srcid, u64 objectid, struct btrfs_qgroup_inherit *inherit)
 
int btrfs_qgroup_reserve (struct btrfs_root *root, u64 num_bytes)
 
void btrfs_qgroup_free (struct btrfs_root *root, u64 num_bytes)
 
void assert_qgroups_uptodate (struct btrfs_trans_handle *trans)
 

Variables

struct kmem_cachebtrfs_trans_handle_cachep
 
struct kmem_cachebtrfs_transaction_cachep
 
struct kmem_cachebtrfs_bit_radix_cachep
 
struct kmem_cachebtrfs_path_cachep
 
struct kmem_cachebtrfs_free_space_cachep
 
__le64 objectid
 
u8 type
 
__le64 offset
 
struct btrfs_mapping_tree __attribute__
 
__le64 devid
 
__le64 total_bytes
 
__le64 bytes_used
 
__le32 io_align
 
__le32 io_width
 
__le32 sector_size
 
__le64 generation
 
__le64 start_offset
 
__le32 dev_group
 
u8 seek_speed
 
u8 bandwidth
 
u8 uuid [BTRFS_UUID_SIZE]
 
u8 fsid [BTRFS_UUID_SIZE]
 
u8 dev_uuid [BTRFS_UUID_SIZE]
 
__le64 length
 
__le64 owner
 
__le64 stripe_len
 
__le16 num_stripes
 
__le16 sub_stripes
 
struct btrfs_stripe stripe
 
__le64 bytes
 
struct btrfs_disk_key location
 
__le64 num_entries
 
__le64 num_bitmaps
 
u8 csum [BTRFS_CSUM_SIZE]
 
__le64 bytenr
 
__le64 flags
 
u8 chunk_tree_uuid [BTRFS_UUID_SIZE]
 
__le32 nritems
 
u8 level
 
__le64 tree_root
 
__le64 tree_root_gen
 
__le64 chunk_root
 
__le64 chunk_root_gen
 
__le64 extent_root
 
__le64 extent_root_gen
 
__le64 fs_root
 
__le64 fs_root_gen
 
__le64 dev_root
 
__le64 dev_root_gen
 
__le64 csum_root
 
__le64 csum_root_gen
 
__le64 num_devices
 
__le64 unsed_64 [4]
 
u8 tree_root_level
 
u8 chunk_root_level
 
u8 extent_root_level
 
u8 fs_root_level
 
u8 dev_root_level
 
u8 csum_root_level
 
u8 unused_8 [10]
 
__le64 magic
 
__le64 root
 
__le64 log_root
 
__le64 log_root_transid
 
__le64 root_dir_objectid
 
__le32 sectorsize
 
__le32 nodesize
 
__le32 leafsize
 
__le32 stripesize
 
__le32 sys_chunk_array_size
 
__le64 chunk_root_generation
 
__le64 compat_flags
 
__le64 compat_ro_flags
 
__le64 incompat_flags
 
__le16 csum_type
 
u8 root_level
 
u8 log_root_level
 
struct btrfs_dev_item dev_item
 
char label [BTRFS_LABEL_SIZE]
 
__le64 cache_generation
 
__le64 reserved [31]
 
u8 sys_chunk_array [BTRFS_SYSTEM_CHUNK_ARRAY_SIZE]
 
struct btrfs_root_backup super_roots [BTRFS_NUM_BACKUP_ROOTS]
 
struct btrfs_disk_key key
 
__le32 size
 
struct btrfs_header header
 
struct btrfs_item items []
 
__le64 blockptr
 
struct btrfs_key_ptr ptrs []
 
__le64 refs
 
__le32 count
 
__le64 chunk_tree
 
__le64 chunk_objectid
 
__le64 chunk_offset
 
__le64 index
 
__le16 name_len
 
__le64 parent_objectid
 
__u8 name [0]
 
__le64 sec
 
__le32 nsec
 
__le64 transid
 
__le64 nbytes
 
__le64 block_group
 
__le32 nlink
 
__le32 uid
 
__le32 gid
 
__le32 mode
 
__le64 rdev
 
__le64 sequence
 
struct btrfs_timespec atime
 
struct btrfs_timespec ctime
 
struct btrfs_timespec mtime
 
struct btrfs_timespec otime
 
__le64 end
 
__le16 data_len
 
struct btrfs_inode_item inode
 
__le64 root_dirid
 
__le64 byte_limit
 
__le64 last_snapshot
 
struct btrfs_disk_key drop_progress
 
u8 drop_level
 
__le64 generation_v2
 
u8 parent_uuid [BTRFS_UUID_SIZE]
 
u8 received_uuid [BTRFS_UUID_SIZE]
 
__le64 ctransid
 
__le64 otransid
 
__le64 stransid
 
__le64 rtransid
 
struct btrfs_timespec stime
 
struct btrfs_timespec rtime
 
__le64 dirid
 
__le64 profiles
 
__le64 usage
 
__le64 pstart
 
__le64 pend
 
__le64 vstart
 
__le64 vend
 
__le64 target
 
__le64 unused [8]
 
struct btrfs_disk_balance_args data
 
struct btrfs_disk_balance_args meta
 
struct btrfs_disk_balance_args sys
 
__le64 ram_bytes
 
u8 compression
 
u8 encryption
 
__le16 other_encoding
 
__le64 disk_bytenr
 
__le64 disk_num_bytes
 
__le64 num_bytes
 
__le64 values [BTRFS_DEV_STAT_VALUES_MAX]
 
__le64 used
 
__le64 version
 
__le64 scan
 
__le64 rfer
 
__le64 rfer_cmpr
 
__le64 excl
 
__le64 excl_cmpr
 
__le64 max_rfer
 
__le64 max_excl
 
__le64 rsv_rfer
 
__le64 rsv_excl
 
struct dentry_operations btrfs_dentry_operations
 
struct file_operations btrfs_file_operations
 
static const charfmt
 
const charfunction
 
const char unsigned int line
 
const char unsigned int int errno
 

Macro Definition Documentation

#define __BTRFS_LEAF_DATA_SIZE (   bs)    ((bs) - sizeof(struct btrfs_header))

Definition at line 370 of file ctree.h.

#define __le8   u8

Definition at line 1799 of file ctree.h.

#define btrfs_abort_transaction (   trans,
  root,
  errno 
)
Value:
do { \
__btrfs_abort_transaction(trans, root, __func__, \
__LINE__, errno); \
} while (0)

Definition at line 3455 of file ctree.h.

#define BTRFS_AVAIL_ALLOC_BIT_SINGLE   (1ULL << 48)

Definition at line 914 of file ctree.h.

#define BTRFS_BACKREF_REV_MASK
Value:
BTRFS_BACKREF_REV_SHIFT)

Definition at line 343 of file ctree.h.

#define BTRFS_BACKREF_REV_MAX   256

Definition at line 341 of file ctree.h.

#define BTRFS_BACKREF_REV_SHIFT   56

Definition at line 342 of file ctree.h.

#define BTRFS_BALANCE_ITEM_KEY   248

Definition at line 1717 of file ctree.h.

#define BTRFS_BALANCE_OBJECTID   -4ULL

Definition at line 92 of file ctree.h.

#define BTRFS_BLOCK_FLAG_FULL_BACKREF   (1ULL << 8)

Definition at line 600 of file ctree.h.

#define BTRFS_BLOCK_GROUP_DATA   (1ULL << 0)

Definition at line 889 of file ctree.h.

#define BTRFS_BLOCK_GROUP_DUP   (1ULL << 5)

Definition at line 894 of file ctree.h.

#define BTRFS_BLOCK_GROUP_ITEM_KEY   192

Definition at line 1687 of file ctree.h.

#define BTRFS_BLOCK_GROUP_METADATA   (1ULL << 2)

Definition at line 891 of file ctree.h.

#define BTRFS_BLOCK_GROUP_PROFILE_MASK
Value:
BTRFS_BLOCK_GROUP_RAID1 | \
BTRFS_BLOCK_GROUP_DUP | \
BTRFS_BLOCK_GROUP_RAID10)

Definition at line 903 of file ctree.h.

#define BTRFS_BLOCK_GROUP_RAID0   (1ULL << 3)

Definition at line 892 of file ctree.h.

#define BTRFS_BLOCK_GROUP_RAID1   (1ULL << 4)

Definition at line 893 of file ctree.h.

#define BTRFS_BLOCK_GROUP_RAID10   (1ULL << 6)

Definition at line 895 of file ctree.h.

#define BTRFS_BLOCK_GROUP_RESERVED   BTRFS_AVAIL_ALLOC_BIT_SINGLE

Definition at line 896 of file ctree.h.

#define BTRFS_BLOCK_GROUP_SYSTEM   (1ULL << 1)

Definition at line 890 of file ctree.h.

#define BTRFS_BLOCK_GROUP_TYPE_MASK
Value:
BTRFS_BLOCK_GROUP_SYSTEM | \
BTRFS_BLOCK_GROUP_METADATA)

Definition at line 899 of file ctree.h.

#define BTRFS_BLOCK_RSV_CHUNK   4

Definition at line 1052 of file ctree.h.

#define BTRFS_BLOCK_RSV_DELALLOC   2

Definition at line 1050 of file ctree.h.

#define BTRFS_BLOCK_RSV_DELOPS   5

Definition at line 1053 of file ctree.h.

#define BTRFS_BLOCK_RSV_EMPTY   6

Definition at line 1054 of file ctree.h.

#define BTRFS_BLOCK_RSV_GLOBAL   1

Definition at line 1049 of file ctree.h.

#define BTRFS_BLOCK_RSV_TEMP   7

Definition at line 1055 of file ctree.h.

#define BTRFS_BLOCK_RSV_TRANS   3

Definition at line 1051 of file ctree.h.

#define BTRFS_BTREE_INODE_OBJECTID   1

Definition at line 141 of file ctree.h.

#define BTRFS_CHUNK_ITEM_KEY   228

Definition at line 1691 of file ctree.h.

#define BTRFS_CHUNK_TREE_OBJECTID   3ULL

Definition at line 74 of file ctree.h.

#define btrfs_clear_opt (   o,
  opt 
)    ((o) &= ~BTRFS_MOUNT_##opt)

Definition at line 1760 of file ctree.h.

#define BTRFS_COMPAT_EXTENT_TREE_V0

Definition at line 55 of file ctree.h.

#define BTRFS_CSUM_SIZE   32

Definition at line 165 of file ctree.h.

#define BTRFS_CSUM_TREE_OBJECTID   7ULL

Definition at line 89 of file ctree.h.

#define BTRFS_CSUM_TYPE_CRC32   0

Definition at line 168 of file ctree.h.

#define BTRFS_DATA_RELOC_TREE_OBJECTID   -9ULL

Definition at line 106 of file ctree.h.

#define BTRFS_DEV_EXTENT_KEY   204

Definition at line 1689 of file ctree.h.

#define BTRFS_DEV_ITEM_KEY   216

Definition at line 1690 of file ctree.h.

#define BTRFS_DEV_ITEMS_OBJECTID   1ULL

Definition at line 139 of file ctree.h.

#define BTRFS_DEV_STATS_KEY   249

Definition at line 1723 of file ctree.h.

#define BTRFS_DEV_TREE_OBJECTID   4ULL

Definition at line 80 of file ctree.h.

#define BTRFS_DIR_INDEX_KEY   96

Definition at line 1636 of file ctree.h.

#define BTRFS_DIR_ITEM_KEY   84

Definition at line 1635 of file ctree.h.

#define BTRFS_DIR_LOG_INDEX_KEY   72

Definition at line 1634 of file ctree.h.

#define BTRFS_DIR_LOG_ITEM_KEY   60

Definition at line 1633 of file ctree.h.

#define BTRFS_EMPTY_DIR_SIZE   0

Definition at line 173 of file ctree.h.

#define BTRFS_EMPTY_SUBVOL_DIR_OBJECTID   2

Definition at line 143 of file ctree.h.

#define btrfs_error (   fs_info,
  errno,
  fmt,
  args... 
)
Value:
do { \
__btrfs_std_error((fs_info), __func__, __LINE__, \
(errno), fmt, ##args); \
} while (0)

Definition at line 3468 of file ctree.h.

#define BTRFS_EXTENDED_PROFILE_MASK
Value:
BTRFS_AVAIL_ALLOC_BIT_SINGLE)

Definition at line 916 of file ctree.h.

#define BTRFS_EXTENT_CSUM_KEY   128

Definition at line 1646 of file ctree.h.

#define BTRFS_EXTENT_CSUM_OBJECTID   -10ULL

Definition at line 113 of file ctree.h.

#define BTRFS_EXTENT_DATA_KEY   108

Definition at line 1640 of file ctree.h.

#define BTRFS_EXTENT_DATA_REF_KEY   178

Definition at line 1675 of file ctree.h.

#define BTRFS_EXTENT_FLAG_DATA   (1ULL << 0)

Definition at line 594 of file ctree.h.

#define BTRFS_EXTENT_FLAG_SUPER   (1ULL << 48)

Definition at line 606 of file ctree.h.

#define BTRFS_EXTENT_FLAG_TREE_BLOCK   (1ULL << 1)

Definition at line 595 of file ctree.h.

#define BTRFS_EXTENT_ITEM_KEY   168

Definition at line 1671 of file ctree.h.

#define BTRFS_EXTENT_REF_V0_KEY   180

Definition at line 1677 of file ctree.h.

#define BTRFS_EXTENT_TREE_OBJECTID   2ULL

Definition at line 68 of file ctree.h.

#define BTRFS_FEATURE_COMPAT_RO_SUPP   0ULL

Definition at line 502 of file ctree.h.

#define BTRFS_FEATURE_COMPAT_SUPP   0ULL

Definition at line 501 of file ctree.h.

#define BTRFS_FEATURE_INCOMPAT_BIG_METADATA   (1ULL << 5)

Definition at line 497 of file ctree.h.

#define BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO   (1ULL << 3)

Definition at line 484 of file ctree.h.

#define BTRFS_FEATURE_INCOMPAT_COMPRESS_LZOv2   (1ULL << 4)

Definition at line 491 of file ctree.h.

#define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL   (1ULL << 1)

Definition at line 482 of file ctree.h.

#define BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF   (1ULL << 6)

Definition at line 499 of file ctree.h.

#define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF   (1ULL << 0)

Definition at line 481 of file ctree.h.

#define BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS   (1ULL << 2)

Definition at line 483 of file ctree.h.

#define BTRFS_FEATURE_INCOMPAT_SUPP
Value:
BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL | \
BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS | \
BTRFS_FEATURE_INCOMPAT_BIG_METADATA | \
BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO | \
BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF)

Definition at line 503 of file ctree.h.

#define BTRFS_FILE_EXTENT_INLINE   0

Definition at line 822 of file ctree.h.

#define BTRFS_FILE_EXTENT_PREALLOC   2

Definition at line 824 of file ctree.h.

#define BTRFS_FILE_EXTENT_REG   1

Definition at line 823 of file ctree.h.

#define BTRFS_FIRST_CHUNK_TREE_OBJECTID   256ULL

Definition at line 132 of file ctree.h.

#define BTRFS_FIRST_FREE_OBJECTID   256ULL

Definition at line 130 of file ctree.h.

#define BTRFS_FREE_INO_OBJECTID   -12ULL

Definition at line 122 of file ctree.h.

#define BTRFS_FREE_SPACE_BITMAP   2

Definition at line 306 of file ctree.h.

#define BTRFS_FREE_SPACE_EXTENT   1

Definition at line 305 of file ctree.h.

#define BTRFS_FREE_SPACE_OBJECTID   -11ULL

Definition at line 116 of file ctree.h.

#define BTRFS_FS_TREE_OBJECTID   5ULL

Definition at line 83 of file ctree.h.

#define BTRFS_FT_BLKDEV   4

Definition at line 179 of file ctree.h.

#define BTRFS_FT_CHRDEV   3

Definition at line 178 of file ctree.h.

#define BTRFS_FT_DIR   2

Definition at line 177 of file ctree.h.

#define BTRFS_FT_FIFO   5

Definition at line 180 of file ctree.h.

#define BTRFS_FT_MAX   9

Definition at line 184 of file ctree.h.

#define BTRFS_FT_REG_FILE   1

Definition at line 176 of file ctree.h.

#define BTRFS_FT_SOCK   6

Definition at line 181 of file ctree.h.

#define BTRFS_FT_SYMLINK   7

Definition at line 182 of file ctree.h.

#define BTRFS_FT_UNKNOWN   0

Definition at line 175 of file ctree.h.

#define BTRFS_FT_XATTR   8

Definition at line 183 of file ctree.h.

#define btrfs_get_acl   NULL

Definition at line 3492 of file ctree.h.

#define BTRFS_HEADER_FLAG_RELOC   (1ULL << 1)

Definition at line 329 of file ctree.h.

#define BTRFS_HEADER_FLAG_WRITTEN   (1ULL << 0)

Definition at line 328 of file ctree.h.

#define BTRFS_INODE_APPEND   (1 << 7)

Definition at line 1774 of file ctree.h.

#define BTRFS_INODE_COMPRESS   (1 << 11)

Definition at line 1778 of file ctree.h.

#define BTRFS_INODE_DIRSYNC   (1 << 10)

Definition at line 1777 of file ctree.h.

#define BTRFS_INODE_EXTREF_KEY   13

Definition at line 1624 of file ctree.h.

#define BTRFS_INODE_IMMUTABLE   (1 << 6)

Definition at line 1773 of file ctree.h.

#define BTRFS_INODE_ITEM_KEY   1

Definition at line 1622 of file ctree.h.

#define BTRFS_INODE_NOATIME   (1 << 9)

Definition at line 1776 of file ctree.h.

#define BTRFS_INODE_NOCOMPRESS   (1 << 3)

Definition at line 1770 of file ctree.h.

#define BTRFS_INODE_NODATACOW   (1 << 1)

Definition at line 1768 of file ctree.h.

#define BTRFS_INODE_NODATASUM   (1 << 0)

Definition at line 1767 of file ctree.h.

#define BTRFS_INODE_NODUMP   (1 << 8)

Definition at line 1775 of file ctree.h.

#define BTRFS_INODE_PREALLOC   (1 << 4)

Definition at line 1771 of file ctree.h.

#define BTRFS_INODE_READONLY   (1 << 2)

Definition at line 1769 of file ctree.h.

#define BTRFS_INODE_REF_KEY   12

Definition at line 1623 of file ctree.h.

#define BTRFS_INODE_ROOT_ITEM_INIT   (1 << 31)

Definition at line 1780 of file ctree.h.

#define BTRFS_INODE_SYNC   (1 << 5)

Definition at line 1772 of file ctree.h.

#define BTRFS_IOPRIO_READA   (IOPRIO_PRIO_VALUE(IOPRIO_CLASS_IDLE, 0))

Definition at line 187 of file ctree.h.

#define btrfs_item_ptr (   leaf,
  slot,
  type 
)
Value:
((type *)(btrfs_leaf_data(leaf) + \
btrfs_item_offset_nr(leaf, slot)))

Definition at line 2771 of file ctree.h.

#define btrfs_item_ptr_offset (   leaf,
  slot 
)
Value:
((unsigned long)(btrfs_leaf_data(leaf) + \
btrfs_item_offset_nr(leaf, slot)))

Definition at line 2775 of file ctree.h.

#define BTRFS_LABEL_SIZE   256

Definition at line 385 of file ctree.h.

#define BTRFS_LAST_FREE_OBJECTID   -256ULL

Definition at line 131 of file ctree.h.

#define BTRFS_LEAF_DATA_SIZE (   r)    (__BTRFS_LEAF_DATA_SIZE(r->leafsize))

Definition at line 371 of file ctree.h.

#define BTRFS_LINK_MAX   65535U

Definition at line 162 of file ctree.h.

#define BTRFS_MAGIC   "_BHRfS_M"

Definition at line 49 of file ctree.h.

#define BTRFS_MAX_EXTENT_ITEM_SIZE (   r)
Value:
((BTRFS_LEAF_DATA_SIZE(r) >> 4) - \
sizeof(struct btrfs_item))

Definition at line 591 of file ctree.h.

#define BTRFS_MAX_INLINE_DATA_SIZE (   r)
Value:
sizeof(struct btrfs_item) - \
sizeof(struct btrfs_file_extent_item))

Definition at line 372 of file ctree.h.

#define BTRFS_MAX_LEVEL   8

Definition at line 53 of file ctree.h.

#define BTRFS_MAX_METADATA_BLOCKSIZE   65536

Definition at line 149 of file ctree.h.

#define BTRFS_MAX_MIRRORS   2

Definition at line 51 of file ctree.h.

#define BTRFS_MAX_XATTR_SIZE (   r)
Value:
sizeof(struct btrfs_item) -\
sizeof(struct btrfs_dir_item))

Definition at line 375 of file ctree.h.

#define BTRFS_MIXED_BACKREF_REV   1

Definition at line 347 of file ctree.h.

#define BTRFS_MOUNT_AUTO_DEFRAG   (1 << 16)

Definition at line 1752 of file ctree.h.

#define BTRFS_MOUNT_CHECK_INTEGRITY   (1 << 20)

Definition at line 1756 of file ctree.h.

#define BTRFS_MOUNT_CHECK_INTEGRITY_INCLUDING_EXTENT_DATA   (1 << 21)

Definition at line 1757 of file ctree.h.

#define BTRFS_MOUNT_CLEAR_CACHE   (1 << 13)

Definition at line 1749 of file ctree.h.

#define BTRFS_MOUNT_COMPRESS   (1 << 5)

Definition at line 1741 of file ctree.h.

#define BTRFS_MOUNT_DEGRADED   (1 << 4)

Definition at line 1740 of file ctree.h.

#define BTRFS_MOUNT_DISCARD   (1 << 10)

Definition at line 1746 of file ctree.h.

#define BTRFS_MOUNT_ENOSPC_DEBUG   (1 << 15)

Definition at line 1751 of file ctree.h.

#define BTRFS_MOUNT_FLUSHONCOMMIT   (1 << 7)

Definition at line 1743 of file ctree.h.

#define BTRFS_MOUNT_FORCE_COMPRESS   (1 << 11)

Definition at line 1747 of file ctree.h.

#define BTRFS_MOUNT_INODE_MAP_CACHE   (1 << 17)

Definition at line 1753 of file ctree.h.

#define BTRFS_MOUNT_NOBARRIER   (1 << 2)

Definition at line 1738 of file ctree.h.

#define BTRFS_MOUNT_NODATACOW   (1 << 1)

Definition at line 1737 of file ctree.h.

#define BTRFS_MOUNT_NODATASUM   (1 << 0)

Definition at line 1736 of file ctree.h.

#define BTRFS_MOUNT_NOSSD   (1 << 9)

Definition at line 1745 of file ctree.h.

#define BTRFS_MOUNT_NOTREELOG   (1 << 6)

Definition at line 1742 of file ctree.h.

#define BTRFS_MOUNT_PANIC_ON_FATAL_ERROR   (1 << 22)

Definition at line 1758 of file ctree.h.

#define BTRFS_MOUNT_RECOVERY   (1 << 18)

Definition at line 1754 of file ctree.h.

#define BTRFS_MOUNT_SKIP_BALANCE   (1 << 19)

Definition at line 1755 of file ctree.h.

#define BTRFS_MOUNT_SPACE_CACHE   (1 << 12)

Definition at line 1748 of file ctree.h.

#define BTRFS_MOUNT_SSD   (1 << 3)

Definition at line 1739 of file ctree.h.

#define BTRFS_MOUNT_SSD_SPREAD   (1 << 8)

Definition at line 1744 of file ctree.h.

#define BTRFS_MOUNT_USER_SUBVOL_RM_ALLOWED   (1 << 14)

Definition at line 1750 of file ctree.h.

#define BTRFS_MULTIPLE_OBJECTIDS   -255ULL

Definition at line 125 of file ctree.h.

#define BTRFS_NAME_LEN   255

Definition at line 155 of file ctree.h.

#define BTRFS_NODEPTRS_PER_BLOCK (   r)
Value:
(((r)->nodesize - \
sizeof(struct btrfs_header)) / \
sizeof(struct btrfs_key_ptr))

Definition at line 367 of file ctree.h.

#define BTRFS_NR_RAID_TYPES   5

Definition at line 897 of file ctree.h.

#define BTRFS_NUM_BACKUP_ROOTS   4

Definition at line 392 of file ctree.h.

#define BTRFS_OLD_BACKREF_REV   0

Definition at line 346 of file ctree.h.

#define BTRFS_ORDERED_OPERATIONS_FLUSH_LIMIT   (8 * 1024 * 1024)

Definition at line 62 of file ctree.h.

#define BTRFS_ORPHAN_ITEM_KEY   48

Definition at line 1626 of file ctree.h.

#define BTRFS_ORPHAN_OBJECTID   -5ULL

Definition at line 98 of file ctree.h.

#define btrfs_panic (   fs_info,
  errno,
  fmt,
  args... 
)
Value:
do { \
__btrfs_panic(_i, __func__, __LINE__, errno, fmt, ##args); \
BUG_ON(!(_i->mount_opt & BTRFS_MOUNT_PANIC_ON_FATAL_ERROR)); \
} while (0)

Definition at line 3478 of file ctree.h.

#define BTRFS_QGROUP_INFO_KEY   242

Definition at line 1703 of file ctree.h.

#define BTRFS_QGROUP_LIMIT_EXCL_CMPR   (1ULL << 5)

Definition at line 990 of file ctree.h.

#define BTRFS_QGROUP_LIMIT_KEY   244

Definition at line 1708 of file ctree.h.

#define BTRFS_QGROUP_LIMIT_MAX_EXCL   (1ULL << 1)

Definition at line 986 of file ctree.h.

#define BTRFS_QGROUP_LIMIT_MAX_RFER   (1ULL << 0)

Definition at line 985 of file ctree.h.

#define BTRFS_QGROUP_LIMIT_RFER_CMPR   (1ULL << 4)

Definition at line 989 of file ctree.h.

#define BTRFS_QGROUP_LIMIT_RSV_EXCL   (1ULL << 3)

Definition at line 988 of file ctree.h.

#define BTRFS_QGROUP_LIMIT_RSV_RFER   (1ULL << 2)

Definition at line 987 of file ctree.h.

#define BTRFS_QGROUP_RELATION_KEY   246

Definition at line 1715 of file ctree.h.

#define BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT   (1ULL << 2)

Definition at line 952 of file ctree.h.

#define BTRFS_QGROUP_STATUS_FLAG_ON   (1ULL << 0)

Definition at line 940 of file ctree.h.

#define BTRFS_QGROUP_STATUS_FLAG_SCANNING   (1ULL << 1)

Definition at line 944 of file ctree.h.

#define BTRFS_QGROUP_STATUS_KEY   240

Definition at line 1698 of file ctree.h.

#define BTRFS_QGROUP_STATUS_VERSION   1

Definition at line 954 of file ctree.h.

#define BTRFS_QUOTA_TREE_OBJECTID   8ULL

Definition at line 95 of file ctree.h.

#define BTRFS_ROOT_BACKREF_KEY   144

Definition at line 1658 of file ctree.h.

#define BTRFS_ROOT_ITEM_KEY   132

Definition at line 1652 of file ctree.h.

#define BTRFS_ROOT_REF_KEY   156

Definition at line 1665 of file ctree.h.

#define BTRFS_ROOT_SUBVOL_RDONLY   (1ULL << 0)

Definition at line 718 of file ctree.h.

#define BTRFS_ROOT_TREE_DIR_OBJECTID   6ULL

Definition at line 86 of file ctree.h.

#define BTRFS_ROOT_TREE_OBJECTID   1ULL

Definition at line 65 of file ctree.h.

#define btrfs_set_fs_incompat (   __fs_info,
  opt 
)    __btrfs_set_fs_incompat((__fs_info), BTRFS_FEATURE_INCOMPAT_##opt)

Definition at line 3433 of file ctree.h.

#define btrfs_set_opt (   o,
  opt 
)    ((o) |= BTRFS_MOUNT_##opt)

Definition at line 1761 of file ctree.h.

#define BTRFS_SETGET_FUNCS (   name,
  type,
  member,
  bits 
)
Value:
static inline u##bits btrfs_##name(struct extent_buffer *eb, type *s) \
{ \
BUILD_BUG_ON(sizeof(u##bits) != sizeof(((type *)0))->member); \
return btrfs_get_##bits(eb, s, offsetof(type, member)); \
} \
static inline void btrfs_set_##name(struct extent_buffer *eb, type *s, \
u##bits val) \
{ \
BUILD_BUG_ON(sizeof(u##bits) != sizeof(((type *)0))->member); \
btrfs_set_##bits(eb, s, offsetof(type, member), val); \
} \
static inline u##bits btrfs_token_##name(struct extent_buffer *eb, type *s, \
{ \
BUILD_BUG_ON(sizeof(u##bits) != sizeof(((type *)0))->member); \
return btrfs_get_token_##bits(eb, s, offsetof(type, member), token); \
} \
static inline void btrfs_set_token_##name(struct extent_buffer *eb, \
type *s, u##bits val, \
{ \
BUILD_BUG_ON(sizeof(u##bits) != sizeof(((type *)0))->member); \
btrfs_set_token_##bits(eb, s, offsetof(type, member), val, token); \
}

Definition at line 1836 of file ctree.h.

#define BTRFS_SETGET_HEADER_FUNCS (   name,
  type,
  member,
  bits 
)
Value:
static inline u##bits btrfs_##name(struct extent_buffer *eb) \
{ \
type *p = page_address(eb->pages[0]); \
u##bits res = le##bits##_to_cpu(p->member); \
return res; \
} \
static inline void btrfs_set_##name(struct extent_buffer *eb, \
u##bits val) \
{ \
type *p = page_address(eb->pages[0]); \
p->member = cpu_to_le##bits(val); \
}

Definition at line 1862 of file ctree.h.

#define BTRFS_SETGET_STACK_FUNCS (   name,
  type,
  member,
  bits 
)
Value:
static inline u##bits btrfs_##name(type *s) \
{ \
return le##bits##_to_cpu(s->member); \
} \
static inline void btrfs_set_##name(type *s, u##bits val) \
{ \
s->member = cpu_to_le##bits(val); \
}

Definition at line 1876 of file ctree.h.

#define BTRFS_SHARED_BLOCK_REF_KEY   182

Definition at line 1679 of file ctree.h.

#define BTRFS_SHARED_DATA_REF_KEY   184

Definition at line 1681 of file ctree.h.

#define btrfs_std_error (   fs_info,
  errno 
)
Value:
do { \
if ((errno)) \
__btrfs_std_error((fs_info), __func__, \
__LINE__, (errno), NULL); \
} while (0)

Definition at line 3461 of file ctree.h.

#define BTRFS_STRING_ITEM_KEY   253

Definition at line 1729 of file ctree.h.

#define BTRFS_SUPER_FLAG_ERROR   (1ULL << 2)

Definition at line 336 of file ctree.h.

#define BTRFS_SUPER_FLAG_METADUMP   (1ULL << 33)

Definition at line 339 of file ctree.h.

#define BTRFS_SUPER_FLAG_SEEDING   (1ULL << 32)

Definition at line 338 of file ctree.h.

#define BTRFS_SYSTEM_CHUNK_ARRAY_SIZE   2048

Definition at line 384 of file ctree.h.

#define btrfs_test_opt (   root,
  opt 
)
Value:
((root)->fs_info->mount_opt & \
BTRFS_MOUNT_##opt)

Definition at line 1762 of file ctree.h.

#define BTRFS_TREE_BLOCK_REF_KEY   176

Definition at line 1673 of file ctree.h.

#define BTRFS_TREE_LOG_FIXUP_OBJECTID   -7ULL

Definition at line 102 of file ctree.h.

#define BTRFS_TREE_LOG_OBJECTID   -6ULL

Definition at line 101 of file ctree.h.

#define BTRFS_TREE_RELOC_OBJECTID   -8ULL

Definition at line 105 of file ctree.h.

#define BTRFS_XATTR_ITEM_KEY   24

Definition at line 1625 of file ctree.h.

#define cpu_to_le8 (   v)    (v)

Definition at line 1798 of file ctree.h.

#define DECLARE_BTRFS_SETGET_BITS (   bits)
Value:
u##bits btrfs_get_token_##bits(struct extent_buffer *eb, void *ptr, \
unsigned long off, \
struct btrfs_map_token *token); \
void btrfs_set_token_##bits(struct extent_buffer *eb, void *ptr, \
unsigned long off, u##bits val, \
struct btrfs_map_token *token); \
static inline u##bits btrfs_get_##bits(struct extent_buffer *eb, void *ptr, \
unsigned long off) \
{ \
return btrfs_get_token_##bits(eb, ptr, off, NULL); \
} \
static inline void btrfs_set_##bits(struct extent_buffer *eb, void *ptr, \
unsigned long off, u##bits val) \
{ \
btrfs_set_token_##bits(eb, ptr, off, val, NULL); \
}

Definition at line 1813 of file ctree.h.

#define le8_to_cpu (   v)    (v)

Definition at line 1797 of file ctree.h.

#define read_eb_member (   eb,
  ptr,
  type,
  member,
  result 
)
Value:
( \
read_extent_buffer(eb, (char *)(result), \
((unsigned long)(ptr)) + \
offsetof(type, member), \
sizeof(((type *)0)->member)))

Definition at line 1801 of file ctree.h.

#define write_eb_member (   eb,
  ptr,
  type,
  member,
  result 
)
Value:
( \
write_extent_buffer(eb, (char *)(result), \
((unsigned long)(ptr)) + \
offsetof(type, member), \
sizeof(((type *)0)->member)))

Definition at line 1807 of file ctree.h.

Typedef Documentation

typedef int(* btrfs_changed_cb_t)(struct btrfs_root *left_root, struct btrfs_root *right_root, struct btrfs_path *left_path, struct btrfs_path *right_path, struct btrfs_key *key, enum btrfs_compare_tree_result result, void *ctx)

Definition at line 2982 of file ctree.h.

Enumeration Type Documentation

Enumerator:
BTRFS_CACHE_NO 
BTRFS_CACHE_STARTED 
BTRFS_CACHE_FAST 
BTRFS_CACHE_FINISHED 

Definition at line 1092 of file ctree.h.

Enumerator:
BTRFS_COMPARE_TREE_NEW 
BTRFS_COMPARE_TREE_DELETED 
BTRFS_COMPARE_TREE_CHANGED 

Definition at line 2977 of file ctree.h.

Enumerator:
BTRFS_COMPRESS_NONE 
BTRFS_COMPRESS_ZLIB 
BTRFS_COMPRESS_LZO 
BTRFS_COMPRESS_TYPES 
BTRFS_COMPRESS_LAST 

Definition at line 669 of file ctree.h.

Enumerator:
BTRFS_DC_WRITTEN 
BTRFS_DC_ERROR 
BTRFS_DC_CLEAR 
BTRFS_DC_SETUP 
BTRFS_DC_NEED_WRITE 

Definition at line 1099 of file ctree.h.

Function Documentation

struct btrfs_disk_key __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

static const char void __btrfs_abort_transaction ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char function,
unsigned int  line,
int  errno 
)

Definition at line 242 of file super.c.

int __btrfs_drop_extents ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode,
struct btrfs_path path,
u64  start,
u64  end,
u64 drop_end,
int  drop_cache 
)

Definition at line 590 of file file.c.

int __btrfs_scrub_cancel ( struct btrfs_fs_info info)

Definition at line 2380 of file scrub.c.

__printf ( ,
 
)
void assert_qgroups_uptodate ( struct btrfs_trans_handle trans)

Definition at line 1582 of file qgroup.c.

int btree_readahead_hook ( struct btrfs_root root,
struct extent_buffer eb,
u64  start,
int  err 
)

Definition at line 236 of file reada.c.

u64 btrfs_account_ro_block_groups_free_space ( struct btrfs_space_info sinfo)

Definition at line 7323 of file extent-tree.c.

void btrfs_add_delayed_iput ( struct inode inode)

Definition at line 2080 of file inode.c.

int btrfs_add_inode_defrag ( struct btrfs_trans_handle trans,
struct inode inode 
)

Definition at line 139 of file file.c.

int btrfs_add_link ( struct btrfs_trans_handle trans,
struct inode parent_inode,
struct inode inode,
const char name,
int  name_len,
int  add_backref,
u64  index 
)

Definition at line 4811 of file inode.c.

int btrfs_add_qgroup_relation ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  src,
u64  dst 
)

Definition at line 881 of file qgroup.c.

int btrfs_add_root_ref ( struct btrfs_trans_handle trans,
struct btrfs_root tree_root,
u64  root_id,
u64  ref_id,
u64  dirid,
u64  sequence,
const char name,
int  name_len 
)

Definition at line 478 of file root-tree.c.

struct btrfs_block_rsv* btrfs_alloc_block_rsv ( struct btrfs_root root,
unsigned short  type 
)
read

Definition at line 4126 of file extent-tree.c.

struct extent_buffer* btrfs_alloc_free_block ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u32  blocksize,
u64  parent,
u64  root_objectid,
struct btrfs_disk_key key,
int  level,
u64  hint,
u64  empty_size 
)
read

Definition at line 6326 of file extent-tree.c.

struct inode* btrfs_alloc_inode ( struct super_block sb)
read

Definition at line 7059 of file inode.c.

int btrfs_alloc_logged_file_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  root_objectid,
u64  owner,
u64  offset,
struct btrfs_key ins 
)

Definition at line 6167 of file extent-tree.c.

struct btrfs_path* btrfs_alloc_path ( void  )
read

Definition at line 52 of file ctree.c.

int btrfs_alloc_reserved_file_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  root_objectid,
u64  owner,
u64  offset,
struct btrfs_key ins 
)

Definition at line 6146 of file extent-tree.c.

int btrfs_bin_search ( struct extent_buffer eb,
struct btrfs_key key,
int  level,
int slot 
)

Definition at line 1661 of file ctree.c.

int btrfs_block_can_be_shared ( struct btrfs_root root,
struct extent_buffer buf 
)

Definition at line 814 of file ctree.c.

int btrfs_block_rsv_add ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
u64  num_bytes 
)

Definition at line 4169 of file extent-tree.c.

int btrfs_block_rsv_add_noflush ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
u64  num_bytes 
)

Definition at line 4176 of file extent-tree.c.

int btrfs_block_rsv_check ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
int  min_factor 
)

Definition at line 4183 of file extent-tree.c.

int btrfs_block_rsv_migrate ( struct btrfs_block_rsv src_rsv,
struct btrfs_block_rsv dst_rsv,
u64  num_bytes 
)

Definition at line 4245 of file extent-tree.c.

int btrfs_block_rsv_refill ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
u64  min_reserved 
)

Definition at line 4231 of file extent-tree.c.

int btrfs_block_rsv_refill_noflush ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
u64  min_reserved 
)

Definition at line 4238 of file extent-tree.c.

void btrfs_block_rsv_release ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
u64  num_bytes 
)

Definition at line 4252 of file extent-tree.c.

int btrfs_can_relocate ( struct btrfs_root root,
u64  bytenr 
)

Definition at line 7364 of file extent-tree.c.

void btrfs_check_and_init_root_item ( struct btrfs_root_item item)

Definition at line 533 of file root-tree.c.

int btrfs_check_data_free_space ( struct inode inode,
u64  bytes 
)

Definition at line 3361 of file extent-tree.c.

void btrfs_clear_path_blocking ( struct btrfs_path p,
struct extent_buffer held,
int  held_rw 
)

Definition at line 85 of file ctree.c.

void btrfs_clear_space_info_full ( struct btrfs_fs_info info)

Definition at line 641 of file extent-tree.c.

int btrfs_comp_cpu_keys ( struct btrfs_key k1,
struct btrfs_key k2 
)

Definition at line 1425 of file ctree.c.

int btrfs_compare_trees ( struct btrfs_root left_root,
struct btrfs_root right_root,
btrfs_changed_cb_t  cb,
void ctx 
)

Definition at line 5078 of file ctree.c.

int btrfs_cont_expand ( struct inode inode,
loff_t  oldsize,
loff_t  size 
)

Definition at line 3585 of file inode.c.

int btrfs_copy_root ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
struct extent_buffer **  cow_ret,
u64  new_root_objectid 
)

Definition at line 246 of file ctree.c.

int btrfs_cow_block ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
struct extent_buffer parent,
int  parent_slot,
struct extent_buffer **  cow_ret 
)

Definition at line 1356 of file ctree.c.

void btrfs_create_pending_block_groups ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 7787 of file extent-tree.c.

int btrfs_create_qgroup ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  qgroupid,
char name 
)

Definition at line 932 of file qgroup.c.

int btrfs_create_subvol_root ( struct btrfs_trans_handle trans,
struct btrfs_root new_root,
u64  new_dirid 
)

Definition at line 7034 of file inode.c.

int btrfs_cross_ref_exist ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  objectid,
u64  offset,
u64  bytenr 
)

Definition at line 2757 of file extent-tree.c.

int btrfs_csum_file_blocks ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_ordered_sum sums 
)

Definition at line 668 of file file-item.c.

int btrfs_csum_one_bio ( struct btrfs_root root,
struct inode inode,
struct bio *  bio,
u64  file_start,
int  contig 
)

Definition at line 407 of file file-item.c.

int btrfs_csum_truncate ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  isize 
)
int btrfs_dec_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
int  full_backref,
int  for_cow 
)

Definition at line 2870 of file extent-tree.c.

int btrfs_defrag_file ( struct inode inode,
struct file file,
struct btrfs_ioctl_defrag_range_args range,
u64  newer_than,
unsigned long  max_pages 
)

Definition at line 1089 of file ioctl.c.

int btrfs_defrag_leaves ( struct btrfs_trans_handle trans,
struct btrfs_root root,
int  cache_only 
)

Definition at line 31 of file tree-defrag.c.

int btrfs_del_csums ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  bytenr,
u64  len 
)

Definition at line 551 of file file-item.c.

int btrfs_del_inode_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char name,
int  name_len,
u64  inode_objectid,
u64  ref_objectid,
u64 index 
)

Definition at line 257 of file inode-item.c.

int btrfs_del_items ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
int  slot,
int  nr 
)

Definition at line 4677 of file ctree.c.

int btrfs_del_orphan_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  offset 
)

Definition at line 43 of file orphan.c.

int btrfs_del_qgroup_relation ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  src,
u64  dst 
)

Definition at line 908 of file qgroup.c.

int btrfs_del_root ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_key key 
)

Definition at line 367 of file root-tree.c.

int btrfs_del_root_ref ( struct btrfs_trans_handle trans,
struct btrfs_root tree_root,
u64  root_id,
u64  ref_id,
u64  dirid,
u64 sequence,
const char name,
int  name_len 
)

Definition at line 392 of file root-tree.c.

void btrfs_delalloc_release_metadata ( struct inode inode,
u64  num_bytes 
)

btrfs_delalloc_release_metadata - release a metadata reservation for an inode : the inode to release the reservation for : the number of bytes we're releasing

This will release the metadata reservation for an inode. This can be called once we complete IO for a given set of bytes to release their metadata reservations.

Definition at line 4641 of file extent-tree.c.

void btrfs_delalloc_release_space ( struct inode inode,
u64  num_bytes 
)

btrfs_delalloc_release_space - release data and metadata space for delalloc : inode we're releasing space for : the number of bytes we want to free up

This must be matched with a call to btrfs_delalloc_reserve_space. This is called in the case that we don't need the metadata AND data reservations anymore. So if there is an error or we insert an inline extent.

This function will release the metadata space that was not used and will decrement ->delalloc_bytes and remove it from the fs_info delalloc_inodes list if there are no delalloc bytes left.

Definition at line 4712 of file extent-tree.c.

int btrfs_delalloc_reserve_metadata ( struct inode inode,
u64  num_bytes 
)

Definition at line 4527 of file extent-tree.c.

int btrfs_delalloc_reserve_space ( struct inode inode,
u64  num_bytes 
)

btrfs_delalloc_reserve_space - reserve data and metadata space for delalloc : inode we're writing to : the number of bytes we want to allocate

This will do the following things

o reserve space in the data space info for num_bytes o reserve space in the metadata space info based on number of outstanding extents and how much csums will be needed o add to the inodes ->delalloc_bytes o add it to the fs_info's delalloc inodes list.

This will return 0 for success and -ENOSPC if there is no space left.

Definition at line 4682 of file extent-tree.c.

int btrfs_delayed_refs_qgroup_accounting ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)

Definition at line 2414 of file extent-tree.c.

int btrfs_delete_one_dir_name ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
struct btrfs_dir_item di 
)

Definition at line 361 of file dir-item.c.

void btrfs_destroy_cachep ( void  )

Definition at line 7189 of file inode.c.

void btrfs_destroy_inode ( struct inode inode)

Definition at line 7112 of file inode.c.

int btrfs_dirty_inode ( struct inode inode)

Definition at line 4527 of file inode.c.

int btrfs_dirty_pages ( struct btrfs_root root,
struct inode inode,
struct page **  pages,
size_t  num_pages,
loff_t  pos,
size_t  write_bytes,
struct extent_state **  cached 
)

Definition at line 418 of file file.c.

void btrfs_drop_extent_cache ( struct inode inode,
u64  start,
u64  end,
int  skip_pinned 
)

Definition at line 462 of file file.c.

int btrfs_drop_extents ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode,
u64  start,
u64  end,
int  drop_cache 
)

Definition at line 839 of file file.c.

int btrfs_drop_inode ( struct inode inode)

Definition at line 7171 of file inode.c.

void btrfs_drop_pages ( struct page **  pages,
size_t  num_pages 
)

Definition at line 395 of file file.c.

int __must_check btrfs_drop_snapshot ( struct btrfs_root root,
struct btrfs_block_rsv block_rsv,
int  update_ref,
int  for_reloc 
)

Definition at line 6879 of file extent-tree.c.

int btrfs_drop_subtree ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer node,
struct extent_buffer parent 
)

Definition at line 7077 of file extent-tree.c.

int btrfs_duplicate_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
struct btrfs_key new_key 
)

Definition at line 4242 of file ctree.c.

int btrfs_error_discard_extent ( struct btrfs_root root,
u64  bytenr,
u64  num_bytes,
u64 actual_bytes 
)

Definition at line 8081 of file extent-tree.c.

int btrfs_error_unpin_extent_range ( struct btrfs_root root,
u64  start,
u64  end 
)

Definition at line 8076 of file extent-tree.c.

void btrfs_evict_inode ( struct inode inode)

Definition at line 3780 of file inode.c.

void btrfs_exit_sysfs ( void  )

Definition at line 42 of file sysfs.c.

void btrfs_extend_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u32  data_size 
)

Definition at line 4378 of file ctree.c.

int btrfs_extent_readonly ( struct btrfs_root root,
u64  bytenr 
)

Definition at line 3163 of file extent-tree.c.

u64 btrfs_find_block_group ( struct btrfs_root root,
u64  search_start,
u64  search_hint,
int  owner 
)

Definition at line 670 of file extent-tree.c.

int btrfs_find_dead_roots ( struct btrfs_root root,
u64  objectid 
)

Definition at line 222 of file root-tree.c.

int btrfs_find_last_root ( struct btrfs_root root,
u64  objectid,
struct btrfs_root_item item,
struct btrfs_key key 
)

Definition at line 72 of file root-tree.c.

int btrfs_find_name_in_ext_backref ( struct btrfs_path path,
u64  ref_objectid,
const char name,
int  name_len,
struct btrfs_inode_extref **  extref_ret 
)

Definition at line 54 of file inode-item.c.

int btrfs_find_next_key ( struct btrfs_root root,
struct btrfs_path path,
struct btrfs_key key,
int  lowest_level,
int  cache_only,
u64  min_trans 
)

Definition at line 5409 of file ctree.c.

int btrfs_find_orphan_item ( struct btrfs_root root,
u64  offset 
)

Definition at line 73 of file orphan.c.

int btrfs_find_orphan_roots ( struct btrfs_root tree_root)

Definition at line 296 of file root-tree.c.

int btrfs_find_root_ref ( struct btrfs_root tree_root,
struct btrfs_path path,
u64  root_id,
u64  ref_id 
)

Definition at line 448 of file root-tree.c.

int btrfs_finish_extent_commit ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 5008 of file extent-tree.c.

int btrfs_force_chunk_alloc ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  type 
)

Definition at line 7276 of file extent-tree.c.

int btrfs_free_and_pin_reserved_extent ( struct btrfs_root root,
u64  start,
u64  len 
)

Definition at line 6005 of file extent-tree.c.

int btrfs_free_block_groups ( struct btrfs_fs_info info)

Definition at line 7552 of file extent-tree.c.

void btrfs_free_block_rsv ( struct btrfs_root root,
struct btrfs_block_rsv rsv 
)

Definition at line 4142 of file extent-tree.c.

int btrfs_free_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  bytenr,
u64  num_bytes,
u64  parent,
u64  root_objectid,
u64  owner,
u64  offset,
int  for_cow 
)

Definition at line 5386 of file extent-tree.c.

void btrfs_free_path ( struct btrfs_path p)

Definition at line 124 of file ctree.c.

void btrfs_free_qgroup_config ( struct btrfs_fs_info fs_info)

Definition at line 406 of file qgroup.c.

void btrfs_free_reserved_data_space ( struct inode inode,
u64  bytes 
)

Definition at line 3459 of file extent-tree.c.

int btrfs_free_reserved_extent ( struct btrfs_root root,
u64  start,
u64  len 
)

Definition at line 5999 of file extent-tree.c.

void btrfs_free_tree_block ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
u64  parent,
int  last_ref 
)

Definition at line 5337 of file extent-tree.c.

u64 btrfs_get_alloc_profile ( struct btrfs_root root,
int  data 
)

Definition at line 3343 of file extent-tree.c.

void btrfs_get_block_group_info ( struct list_head groups_list,
struct btrfs_ioctl_space_info space 
)

Definition at line 2878 of file ioctl.c.

struct extent_map* btrfs_get_extent ( struct inode inode,
struct page page,
size_t  pg_offset,
u64  start,
u64  end,
int  create 
)
read

Definition at line 5225 of file inode.c.

struct extent_map* btrfs_get_extent_fiemap ( struct inode inode,
struct page page,
size_t  pg_offset,
u64  start,
u64  len,
int  create 
)
read

Definition at line 5525 of file inode.c.

int btrfs_get_inode_ref_index ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
const char name,
int  name_len,
u64  inode_objectid,
u64  ref_objectid,
int  mod,
u64 ret_index 
)

Definition at line 147 of file inode-item.c.

u64 btrfs_get_tree_mod_seq ( struct btrfs_fs_info fs_info,
struct seq_list elem 
)

Definition at line 372 of file ctree.c.

struct inode* btrfs_iget ( struct super_block s,
struct btrfs_key location,
struct btrfs_root root,
int was_new 
)
read

Definition at line 4160 of file inode.c.

int btrfs_inc_extent_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  bytenr,
u64  num_bytes,
u64  parent,
u64  root_objectid,
u64  owner,
u64  offset,
int  for_cow 
)

Definition at line 1876 of file extent-tree.c.

int btrfs_inc_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
int  full_backref,
int  for_cow 
)

Definition at line 2864 of file extent-tree.c.

void btrfs_inherit_iflags ( struct inode inode,
struct inode dir 
)

Definition at line 126 of file ioctl.c.

void btrfs_init_block_rsv ( struct btrfs_block_rsv rsv,
unsigned short  type 
)

Definition at line 4119 of file extent-tree.c.

int btrfs_init_cachep ( void  )

Definition at line 7208 of file inode.c.

struct extent_buffer* btrfs_init_new_buffer ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  bytenr,
u32  blocksize,
int  level 
)
read

Definition at line 6222 of file extent-tree.c.

int btrfs_init_reloc_root ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 1359 of file relocation.c.

int btrfs_init_space_info ( struct btrfs_fs_info fs_info)

Definition at line 8038 of file extent-tree.c.

int btrfs_init_sysfs ( void  )

Definition at line 34 of file sysfs.c.

int btrfs_insert_dir_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char name,
int  name_len,
struct inode dir,
struct btrfs_key location,
u8  type,
u64  index 
)

Definition at line 120 of file dir-item.c.

int btrfs_insert_empty_inode ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  objectid 
)

Definition at line 460 of file inode-item.c.

int btrfs_insert_empty_items ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
struct btrfs_key cpu_key,
u32 data_size,
int  nr 
)

Definition at line 4541 of file ctree.c.

int btrfs_insert_file_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  objectid,
u64  pos,
u64  disk_offset,
u64  disk_num_bytes,
u64  num_bytes,
u64  offset,
u64  ram_bytes,
u8  compression,
u8  encryption,
u16  other_encoding 
)

Definition at line 40 of file file-item.c.

int btrfs_insert_inode_ref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char name,
int  name_len,
u64  inode_objectid,
u64  ref_objectid,
u64  index 
)

Definition at line 390 of file inode-item.c.

int btrfs_insert_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_key key,
void data,
u32  data_size 
)

Definition at line 4575 of file ctree.c.

int btrfs_insert_orphan_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  offset 
)

Definition at line 22 of file orphan.c.

int btrfs_insert_root ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_key key,
struct btrfs_root_item item 
)

Definition at line 206 of file root-tree.c.

int btrfs_insert_xattr_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  objectid,
const char name,
u16  name_len,
const void data,
u16  data_len 
)

Definition at line 68 of file dir-item.c.

void btrfs_invalidate_inodes ( struct btrfs_root root)

Definition at line 4065 of file inode.c.

long btrfs_ioctl ( struct file file,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 3702 of file ioctl.c.

long btrfs_ioctl_trans_end ( struct file file)

Definition at line 3020 of file ioctl.c.

int btrfs_leaf_free_space ( struct btrfs_root root,
struct extent_buffer leaf 
)

Definition at line 3323 of file ctree.c.

int btrfs_limit_qgroup ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  qgroupid,
struct btrfs_qgroup_limit limit 
)

Definition at line 975 of file qgroup.c.

ssize_t btrfs_listxattr ( struct dentry dentry,
char buffer,
size_t  size 
)

Definition at line 208 of file xattr.c.

struct extent_buffer* btrfs_lock_root_node ( struct btrfs_root root)
read

Definition at line 193 of file ctree.c.

int btrfs_lookup_bio_sums ( struct btrfs_root root,
struct inode inode,
struct bio *  bio,
u32 dst 
)

Definition at line 269 of file file-item.c.

int btrfs_lookup_bio_sums_dio ( struct btrfs_root root,
struct inode inode,
struct bio *  bio,
u64  logical_offset 
)

Definition at line 275 of file file-item.c.

struct btrfs_block_group_cache* btrfs_lookup_block_group ( struct btrfs_fs_info info,
u64  bytenr 
)
read

Definition at line 607 of file extent-tree.c.

struct btrfs_csum_item* btrfs_lookup_csum ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  bytenr,
int  cow 
)
read

Definition at line 86 of file file-item.c.

int btrfs_lookup_csums_range ( struct btrfs_root root,
u64  start,
u64  end,
struct list_head list,
int  search_commit 
)

Definition at line 281 of file file-item.c.

struct inode* btrfs_lookup_dentry ( struct inode dir,
struct dentry dentry 
)
read

Definition at line 4210 of file inode.c.

struct btrfs_dir_item* btrfs_lookup_dir_index_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  dir,
u64  objectid,
const char name,
int  name_len,
int  mod 
)
read

Definition at line 225 of file dir-item.c.

struct btrfs_dir_item* btrfs_lookup_dir_item ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  dir,
const char name,
int  name_len,
int  mod 
)
read

Definition at line 191 of file dir-item.c.

int btrfs_lookup_extent ( struct btrfs_root root,
u64  start,
u64  len 
)

Definition at line 720 of file extent-tree.c.

int btrfs_lookup_extent_info ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  bytenr,
u64  num_bytes,
u64 refs,
u64 flags 
)

Definition at line 748 of file extent-tree.c.

int btrfs_lookup_file_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  objectid,
u64  bytenr,
int  mod 
)

Definition at line 137 of file file-item.c.

int btrfs_lookup_inode ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
struct btrfs_key location,
int  mod 
)

Definition at line 475 of file inode-item.c.

struct btrfs_inode_extref* btrfs_lookup_inode_extref ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
const char name,
int  name_len,
u64  inode_objectid,
u64  ref_objectid,
int  ins_len,
int  cow 
)
read

Definition at line 122 of file inode-item.c.

struct btrfs_dir_item* btrfs_lookup_xattr ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_path path,
u64  dir,
const char name,
u16  name_len,
int  mod 
)
read

Definition at line 295 of file dir-item.c.

int btrfs_make_block_group ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  bytes_used,
u64  type,
u64  chunk_objectid,
u64  chunk_offset,
u64  size 
)

Definition at line 7815 of file extent-tree.c.

int btrfs_mark_extent_written ( struct btrfs_trans_handle trans,
struct inode inode,
u64  start,
u64  end 
)

Definition at line 895 of file file.c.

struct btrfs_dir_item* btrfs_match_dir_item_name ( struct btrfs_root root,
struct btrfs_path path,
const char name,
int  name_len 
)
read

Definition at line 323 of file dir-item.c.

int btrfs_merge_bio_hook ( struct page page,
unsigned long  offset,
size_t  size,
struct bio *  bio,
unsigned long  bio_flags 
)

Definition at line 1529 of file inode.c.

int btrfs_next_leaf ( struct btrfs_root root,
struct btrfs_path path 
)

Definition at line 5494 of file ctree.c.

int btrfs_next_old_leaf ( struct btrfs_root root,
struct btrfs_path path,
u64  time_seq 
)

Definition at line 5499 of file ctree.c.

void btrfs_node_key ( struct extent_buffer eb,
struct btrfs_disk_key disk_key,
int  nr 
)

Definition at line 136 of file struct-funcs.c.

int btrfs_old_root_level ( struct btrfs_root root,
u64  time_seq 
)

Definition at line 1307 of file ctree.c.

int btrfs_orphan_add ( struct btrfs_trans_handle trans,
struct inode inode 
)

Definition at line 2177 of file inode.c.

int btrfs_orphan_cleanup ( struct btrfs_root root)

Definition at line 2289 of file inode.c.

void btrfs_orphan_commit_root ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 2131 of file inode.c.

int btrfs_orphan_del ( struct btrfs_trans_handle trans,
struct inode inode 
)

Definition at line 2255 of file inode.c.

void btrfs_orphan_release_metadata ( struct inode inode)

Definition at line 4409 of file extent-tree.c.

int btrfs_orphan_reserve_metadata ( struct btrfs_trans_handle trans,
struct inode inode 
)

Definition at line 4391 of file extent-tree.c.

int btrfs_page_mkwrite ( struct vm_area_struct vma,
struct vm_fault *  vmf 
)

Definition at line 6731 of file inode.c.

int btrfs_parse_options ( struct btrfs_root root,
char options 
)

Definition at line 363 of file super.c.

int btrfs_pin_extent ( struct btrfs_root root,
u64  bytenr,
u64  num,
int  reserved 
)

Definition at line 4839 of file extent-tree.c.

int btrfs_pin_extent_for_log_replay ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  bytenr,
u64  num_bytes 
)

Definition at line 4856 of file extent-tree.c.

int btrfs_prealloc_file_range ( struct inode inode,
int  mode,
u64  start,
u64  num_bytes,
u64  min_size,
loff_t  actual_len,
u64 alloc_hint 
)

Definition at line 7734 of file inode.c.

int btrfs_prealloc_file_range_trans ( struct inode inode,
struct btrfs_trans_handle trans,
int  mode,
u64  start,
u64  num_bytes,
u64  min_size,
loff_t  actual_len,
u64 alloc_hint 
)

Definition at line 7743 of file inode.c.

void btrfs_prepare_extent_commit ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 4936 of file extent-tree.c.

int btrfs_prev_leaf ( struct btrfs_root root,
struct btrfs_path path 
)

Definition at line 4796 of file ctree.c.

int btrfs_previous_item ( struct btrfs_root root,
struct btrfs_path path,
u64  min_objectid,
int  type 
)

Definition at line 5660 of file ctree.c.

void btrfs_put_block_group ( struct btrfs_block_group_cache cache)

Definition at line 123 of file extent-tree.c.

void btrfs_put_block_group_cache ( struct btrfs_fs_info info)

Definition at line 7518 of file extent-tree.c.

void btrfs_put_tree_mod_seq ( struct btrfs_fs_info fs_info,
struct seq_list elem 
)

Definition at line 390 of file ctree.c.

int btrfs_qgroup_account_ref ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
struct btrfs_delayed_ref_node node,
struct btrfs_delayed_extent_op extent_op 
)

Definition at line 1051 of file qgroup.c.

void btrfs_qgroup_free ( struct btrfs_root root,
u64  num_bytes 
)

Definition at line 1530 of file qgroup.c.

int btrfs_qgroup_inherit ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  srcid,
u64  objectid,
struct btrfs_qgroup_inherit inherit 
)

Definition at line 1298 of file qgroup.c.

int btrfs_qgroup_record_ref ( struct btrfs_trans_handle trans,
struct btrfs_delayed_ref_node node,
struct btrfs_delayed_extent_op extent_op 
)

Definition at line 1027 of file qgroup.c.

int btrfs_qgroup_reserve ( struct btrfs_root root,
u64  num_bytes 
)

Definition at line 1450 of file qgroup.c.

int btrfs_quota_disable ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)

Definition at line 835 of file qgroup.c.

int btrfs_quota_enable ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)

Definition at line 764 of file qgroup.c.

int btrfs_quota_rescan ( struct btrfs_fs_info fs_info)

Definition at line 875 of file qgroup.c.

int btrfs_read_block_groups ( struct btrfs_root root)

Definition at line 7633 of file extent-tree.c.

int btrfs_read_qgroup_config ( struct btrfs_fs_info fs_info)

Definition at line 240 of file qgroup.c.

void btrfs_read_root_item ( struct btrfs_root root,
struct extent_buffer eb,
int  slot,
struct btrfs_root_item item 
)

Definition at line 32 of file root-tree.c.

struct reada_control* btrfs_reada_add ( struct btrfs_root root,
struct btrfs_key start,
struct btrfs_key end 
)
read

Definition at line 886 of file reada.c.

void btrfs_reada_detach ( void handle)

Definition at line 957 of file reada.c.

int btrfs_reada_wait ( void handle)

Definition at line 943 of file reada.c.

int btrfs_readpage ( struct file file,
struct page page 
)

Definition at line 6591 of file inode.c.

int btrfs_realloc_node ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer parent,
int  start_slot,
int  cache_only,
u64 last_ret,
struct btrfs_key progress 
)

Definition at line 1447 of file ctree.c.

int btrfs_recover_relocation ( struct btrfs_root root)

Definition at line 4134 of file relocation.c.

u64 btrfs_reduce_alloc_profile ( struct btrfs_root root,
u64  flags 
)

Definition at line 3279 of file extent-tree.c.

int btrfs_release_file ( struct inode inode,
struct file file 
)

Definition at line 1509 of file file.c.

void btrfs_release_path ( struct btrfs_path p)

Definition at line 138 of file ctree.c.

int btrfs_reloc_clone_csums ( struct inode inode,
u64  file_pos,
u64  len 
)

Definition at line 4297 of file relocation.c.

void btrfs_reloc_cow_block ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct extent_buffer buf,
struct extent_buffer cow 
)

Definition at line 4338 of file relocation.c.

int btrfs_reloc_post_snapshot ( struct btrfs_trans_handle trans,
struct btrfs_pending_snapshot pending 
)

Definition at line 4430 of file relocation.c.

void btrfs_reloc_pre_snapshot ( struct btrfs_trans_handle trans,
struct btrfs_pending_snapshot pending,
u64 bytes_to_reserve 
)

Definition at line 4396 of file relocation.c.

int btrfs_relocate_block_group ( struct btrfs_root root,
u64  group_start 
)

Definition at line 4001 of file relocation.c.

int btrfs_remove_block_group ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  group_start 
)

Definition at line 7900 of file extent-tree.c.

int btrfs_remove_qgroup ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
u64  qgroupid 
)

Definition at line 955 of file qgroup.c.

int btrfs_replace_extent_cache ( struct inode inode,
struct extent_map replace,
u64  start,
u64  end,
int  skip_pinned,
int  modified 
)
int btrfs_reserve_extent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
u64  num_bytes,
u64  min_alloc_size,
u64  empty_size,
u64  hint_byte,
struct btrfs_key ins,
u64  data 
)

Definition at line 5930 of file extent-tree.c.

struct extent_buffer* btrfs_root_node ( struct btrfs_root root)
read

Definition at line 165 of file ctree.c.

int btrfs_run_defrag_inodes ( struct btrfs_fs_info fs_info)

Definition at line 221 of file file.c.

void btrfs_run_delayed_iputs ( struct btrfs_root root)

Definition at line 2096 of file inode.c.

int btrfs_run_delayed_refs ( struct btrfs_trans_handle trans,
struct btrfs_root root,
unsigned long  count 
)

Definition at line 2458 of file extent-tree.c.

int btrfs_run_qgroups ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)

Definition at line 1255 of file qgroup.c.

int btrfs_scrub_cancel ( struct btrfs_root root)

Definition at line 2402 of file scrub.c.

int btrfs_scrub_cancel_dev ( struct btrfs_root root,
struct btrfs_device dev 
)

Definition at line 2407 of file scrub.c.

int btrfs_scrub_cancel_devid ( struct btrfs_root root,
u64  devid 
)

Definition at line 2430 of file scrub.c.

void btrfs_scrub_continue ( struct btrfs_root root)

Definition at line 2362 of file scrub.c.

void btrfs_scrub_continue_super ( struct btrfs_root root)

Definition at line 2375 of file scrub.c.

int btrfs_scrub_dev ( struct btrfs_root root,
u64  devid,
u64  start,
u64  end,
struct btrfs_scrub_progress progress,
int  readonly 
)

Definition at line 2238 of file scrub.c.

void btrfs_scrub_pause ( struct btrfs_root root)

Definition at line 2345 of file scrub.c.

void btrfs_scrub_pause_super ( struct btrfs_root root)

Definition at line 2370 of file scrub.c.

int btrfs_scrub_progress ( struct btrfs_root root,
u64  devid,
struct btrfs_scrub_progress progress 
)

Definition at line 2452 of file scrub.c.

struct btrfs_dir_item* btrfs_search_dir_index_item ( struct btrfs_root root,
struct btrfs_path path,
u64  dirid,
const char name,
int  name_len 
)
read

Definition at line 249 of file dir-item.c.

int btrfs_search_forward ( struct btrfs_root root,