Lines Matching defs:btrfs_device
60 struct btrfs_device { struct
61 struct list_head dev_list; /* device_list_mutex */
62 struct list_head dev_alloc_list; /* chunk mutex */
63 struct list_head post_commit_list; /* chunk mutex */
64 struct btrfs_fs_devices *fs_devices;
65 struct btrfs_fs_info *fs_info;
67 struct rcu_string *name;
69 u64 generation;
71 spinlock_t io_lock ____cacheline_aligned;
72 int running_pending;
74 struct btrfs_pending_bios pending_bios;
76 struct btrfs_pending_bios pending_sync_bios;
78 struct block_device *bdev;
81 fmode_t mode;
83 unsigned long dev_state;
84 blk_status_t last_flush_error;
87 seqcount_t data_seqcount;
91 u64 devid;
94 u64 total_bytes;
97 u64 disk_total_bytes;
100 u64 bytes_used;
103 u32 io_align;
106 u32 io_width;
108 u64 type;
111 u32 sector_size;
114 u8 uuid[BTRFS_UUID_SIZE];
122 u64 commit_total_bytes;
125 u64 commit_bytes_used;
128 struct bio *flush_bio;
129 struct completion flush_wait;
132 struct scrub_ctx *scrub_ctx;
134 struct btrfs_work work;
137 atomic_t reada_in_flight;
161 btrfs_device_get_##name(const struct btrfs_device *dev) \ argument