Lines Matching defs:btrfs_fs_info
585 struct btrfs_fs_info { struct
586 u8 chunk_tree_uuid[BTRFS_UUID_SIZE];
587 unsigned long flags;
588 struct btrfs_root *extent_root;
589 struct btrfs_root *tree_root;
590 struct btrfs_root *chunk_root;
591 struct btrfs_root *dev_root;
592 struct btrfs_root *fs_root;
593 struct btrfs_root *csum_root;
594 struct btrfs_root *quota_root;
595 struct btrfs_root *uuid_root;
596 struct btrfs_root *free_space_root;
597 struct btrfs_root *data_reloc_root;
600 struct btrfs_root *log_root_tree;
602 spinlock_t fs_roots_radix_lock;
603 struct radix_tree_root fs_roots_radix;
606 spinlock_t block_group_cache_lock;
607 u64 first_logical_byte;
608 struct rb_root block_group_cache_tree;
611 atomic64_t free_chunk_space;
614 struct extent_io_tree excluded_extents;
617 struct extent_map_tree mapping_tree;
623 struct btrfs_block_rsv global_block_rsv;
625 struct btrfs_block_rsv trans_block_rsv;
627 struct btrfs_block_rsv chunk_block_rsv;
629 struct btrfs_block_rsv delayed_block_rsv;
631 struct btrfs_block_rsv delayed_refs_rsv;
633 struct btrfs_block_rsv empty_block_rsv;
635 u64 generation;
636 u64 last_trans_committed;
637 u64 avg_delayed_ref_runtime;
643 u64 last_trans_log_full_commit;
644 unsigned long mount_opt;
649 unsigned long pending_changes;
650 unsigned long compress_type:4;
651 unsigned int compress_level;
652 u32 commit_interval;
659 u64 max_inline;
661 struct btrfs_transaction *running_transaction;
662 wait_queue_head_t transaction_throttle;
663 wait_queue_head_t transaction_wait;
664 wait_queue_head_t transaction_blocked_wait;
665 wait_queue_head_t async_submit_wait;
677 spinlock_t super_lock;
678 struct btrfs_super_block *super_copy;
679 struct btrfs_super_block *super_for_commit;
680 struct super_block *sb;
681 struct inode *btree_inode;
682 struct mutex tree_log_mutex;
683 struct mutex transaction_kthread_mutex;
684 struct mutex cleaner_mutex;
685 struct mutex chunk_mutex;
691 struct mutex ro_block_group_mutex;
697 struct btrfs_stripe_hash_table *stripe_hash_table;
706 struct mutex ordered_operations_mutex;
708 struct rw_semaphore commit_root_sem;
710 struct rw_semaphore cleanup_work_sem;
712 struct rw_semaphore subvol_sem;
714 spinlock_t trans_lock;
719 struct mutex reloc_mutex;
721 struct list_head trans_list;
722 struct list_head dead_roots;
723 struct list_head caching_block_groups;
725 spinlock_t delayed_iput_lock;
726 struct list_head delayed_iputs;
727 atomic_t nr_delayed_iputs;
728 wait_queue_head_t delayed_iputs_wait;
730 atomic64_t tree_mod_seq;
733 rwlock_t tree_mod_log_lock;
734 struct rb_root tree_mod_log;
735 struct list_head tree_mod_seq_list;
737 atomic_t async_delalloc_pages;
742 spinlock_t ordered_root_lock;
751 struct list_head ordered_roots;
753 struct mutex delalloc_root_mutex;
754 spinlock_t delalloc_root_lock;
756 struct list_head delalloc_roots;
768 struct btrfs_workqueue *workers;
769 struct btrfs_workqueue *delalloc_workers;
770 struct btrfs_workqueue *flush_workers;
771 struct btrfs_workqueue *endio_workers;
772 struct btrfs_workqueue *endio_meta_workers;
773 struct btrfs_workqueue *endio_raid56_workers;
774 struct btrfs_workqueue *rmw_workers;
775 struct btrfs_workqueue *endio_meta_write_workers;
776 struct btrfs_workqueue *endio_write_workers;
777 struct btrfs_workqueue *endio_freespace_worker;
778 struct btrfs_workqueue *caching_workers;
779 struct btrfs_workqueue *readahead_workers;
786 struct btrfs_workqueue *fixup_workers;
787 struct btrfs_workqueue *delayed_workers;
789 struct task_struct *transaction_kthread;
790 struct task_struct *cleaner_kthread;
791 u32 thread_pool_size;
793 struct kobject *space_info_kobj;
794 struct kobject *qgroups_kobj;
796 u64 total_pinned;
799 struct percpu_counter dirty_metadata_bytes;
800 struct percpu_counter delalloc_bytes;
801 struct percpu_counter dio_bytes;
802 s32 dirty_metadata_batch;
803 s32 delalloc_batch;
805 struct list_head dirty_cowonly_roots;
807 struct btrfs_fs_devices *fs_devices;
814 struct list_head space_info;
816 struct btrfs_space_info *data_sinfo;
818 struct reloc_control *reloc_ctl;
821 struct btrfs_free_cluster data_alloc_cluster;
824 struct btrfs_free_cluster meta_alloc_cluster;
827 spinlock_t defrag_inodes_lock;
828 struct rb_root defrag_inodes;
829 atomic_t defrag_running;
832 seqlock_t profiles_lock;
838 u64 avail_data_alloc_bits;
839 u64 avail_metadata_alloc_bits;
840 u64 avail_system_alloc_bits;
843 spinlock_t balance_lock;
844 struct mutex balance_mutex;
845 atomic_t balance_pause_req;
846 atomic_t balance_cancel_req;
847 struct btrfs_balance_control *balance_ctl;
848 wait_queue_head_t balance_wait_q;
850 u32 data_chunk_allocations;
851 u32 metadata_ratio;
853 void *bdev_holder;
856 struct mutex scrub_lock;
857 atomic_t scrubs_running;
858 atomic_t scrub_pause_req;
859 atomic_t scrubs_paused;
860 atomic_t scrub_cancel_req;
861 wait_queue_head_t scrub_pause_wait;
866 refcount_t scrub_workers_refcnt;
867 struct btrfs_workqueue *scrub_workers;
868 struct btrfs_workqueue *scrub_wr_completion_workers;
869 struct btrfs_workqueue *scrub_parity_workers;
871 struct btrfs_discard_ctl discard_ctl;
874 u32 check_integrity_print_mask;
877 u64 qgroup_flags;
880 struct rb_root qgroup_tree;
881 spinlock_t qgroup_lock;
887 struct ulist *qgroup_ulist;
893 struct mutex qgroup_ioctl_lock;
896 struct list_head dirty_qgroups;
899 u64 qgroup_seq;
902 struct mutex qgroup_rescan_lock; /* protects the progress item */
903 struct btrfs_key qgroup_rescan_progress;
904 struct btrfs_workqueue *qgroup_rescan_workers;
905 struct completion qgroup_rescan_completion;
906 struct btrfs_work qgroup_rescan_work;
907 bool qgroup_rescan_running; /* protected by qgroup_rescan_lock */
910 unsigned long fs_state;
912 struct btrfs_delayed_root *delayed_root;
915 spinlock_t reada_lock;
916 struct radix_tree_root reada_tree;
919 atomic_t reada_works_cnt;
922 spinlock_t buffer_lock;
923 struct radix_tree_root buffer_radix;
926 int backup_root_index;
929 struct btrfs_dev_replace dev_replace;
931 struct semaphore uuid_tree_rescan_sem;
934 struct work_struct async_reclaim_work;
935 struct work_struct async_data_reclaim_work;
937 spinlock_t unused_bgs_lock;
938 struct list_head unused_bgs;
939 struct mutex unused_bg_unpin_mutex;
940 struct mutex delete_unused_bgs_mutex;
943 u32 nodesize;
944 u32 sectorsize;
945 u32 stripesize;
948 spinlock_t swapfile_pins_lock;
949 struct rb_root swapfile_pins;
951 struct crypto_shash *csum_shash;
977 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb() argument