Lines Matching defs:btrfs_fs_info
409 struct btrfs_fs_info { struct
410 u8 chunk_tree_uuid[BTRFS_UUID_SIZE];
411 unsigned long flags;
412 struct btrfs_root *tree_root;
413 struct btrfs_root *chunk_root;
414 struct btrfs_root *dev_root;
415 struct btrfs_root *fs_root;
416 struct btrfs_root *quota_root;
417 struct btrfs_root *uuid_root;
418 struct btrfs_root *data_reloc_root;
419 struct btrfs_root *block_group_root;
420 struct btrfs_root *stripe_root;
423 struct btrfs_root *log_root_tree;
426 rwlock_t global_root_lock;
427 struct rb_root global_root_tree;
429 spinlock_t fs_roots_radix_lock;
430 struct radix_tree_root fs_roots_radix;
433 rwlock_t block_group_cache_lock;
434 struct rb_root_cached block_group_cache_tree;
437 atomic64_t free_chunk_space;
440 struct extent_io_tree excluded_extents;
443 struct rb_root_cached mapping_tree;
444 rwlock_t mapping_tree_lock;
450 struct btrfs_block_rsv global_block_rsv;
452 struct btrfs_block_rsv trans_block_rsv;
477 * Must be written and read while holding btrfs_fs_info::commit_root_sem. argument
479 u64 last_reloc_trans;
485 u64 last_trans_log_full_commit;
486 unsigned long long mount_opt;
488 unsigned long compress_type:4;
489 unsigned int compress_level;
490 u32 commit_interval;
497 u64 max_inline;
499 struct btrfs_transaction *running_transaction;
500 wait_queue_head_t transaction_throttle;
501 wait_queue_head_t transaction_wait;
502 wait_queue_head_t transaction_blocked_wait;
503 wait_queue_head_t async_submit_wait;
515 spinlock_t super_lock;
516 struct btrfs_super_block *super_copy;
517 struct btrfs_super_block *super_for_commit;
518 struct super_block *sb;
519 struct inode *btree_inode;
520 struct mutex tree_log_mutex;
521 struct mutex transaction_kthread_mutex;
522 struct mutex cleaner_mutex;
523 struct mutex chunk_mutex;
529 struct mutex ro_block_group_mutex;
535 struct btrfs_stripe_hash_table *stripe_hash_table;
544 struct mutex ordered_operations_mutex;
546 struct rw_semaphore commit_root_sem;
548 struct rw_semaphore cleanup_work_sem;
550 struct rw_semaphore subvol_sem;
552 spinlock_t trans_lock;
557 struct mutex reloc_mutex;
559 struct list_head trans_list;
560 struct list_head dead_roots;
561 struct list_head caching_block_groups;
563 spinlock_t delayed_iput_lock;
564 struct list_head delayed_iputs;
565 atomic_t nr_delayed_iputs;
566 wait_queue_head_t delayed_iputs_wait;
568 atomic64_t tree_mod_seq;
571 rwlock_t tree_mod_log_lock;
572 struct rb_root tree_mod_log;
573 struct list_head tree_mod_seq_list;
575 atomic_t async_delalloc_pages;
578 spinlock_t ordered_root_lock;
587 struct list_head ordered_roots;
589 struct mutex delalloc_root_mutex;
590 spinlock_t delalloc_root_lock;
592 struct list_head delalloc_roots;
603 struct btrfs_workqueue *workers;
604 struct btrfs_workqueue *delalloc_workers;
605 struct btrfs_workqueue *flush_workers;
606 struct workqueue_struct *endio_workers;
607 struct workqueue_struct *endio_meta_workers;
608 struct workqueue_struct *rmw_workers;
609 struct workqueue_struct *compressed_write_workers;
610 struct btrfs_workqueue *endio_write_workers;
611 struct btrfs_workqueue *endio_freespace_worker;
612 struct btrfs_workqueue *caching_workers;
619 struct btrfs_workqueue *fixup_workers;
620 struct btrfs_workqueue *delayed_workers;
622 struct task_struct *transaction_kthread;
623 struct task_struct *cleaner_kthread;
624 u32 thread_pool_size;
626 struct kobject *space_info_kobj;
627 struct kobject *qgroups_kobj;
628 struct kobject *discard_kobj;
631 struct percpu_counter stats_read_blocks;
634 struct percpu_counter dirty_metadata_bytes;
635 struct percpu_counter delalloc_bytes;
636 struct percpu_counter ordered_bytes;
637 s32 dirty_metadata_batch;
638 s32 delalloc_batch;
640 struct percpu_counter evictable_extent_maps;
641 u64 em_shrinker_last_root;
642 u64 em_shrinker_last_ino;
643 atomic64_t em_shrinker_nr_to_scan;
644 struct work_struct em_shrinker_work;
647 struct list_head dirty_cowonly_roots;
649 struct btrfs_fs_devices *fs_devices;
656 struct list_head space_info;
658 struct btrfs_space_info *data_sinfo;
660 struct reloc_control *reloc_ctl;
663 struct btrfs_free_cluster data_alloc_cluster;
666 struct btrfs_free_cluster meta_alloc_cluster;
669 spinlock_t defrag_inodes_lock;
670 struct rb_root defrag_inodes;
671 atomic_t defrag_running;
674 seqlock_t profiles_lock;
680 u64 avail_data_alloc_bits;
681 u64 avail_metadata_alloc_bits;
682 u64 avail_system_alloc_bits;
685 spinlock_t balance_lock;
686 struct mutex balance_mutex;
687 atomic_t balance_pause_req;
688 atomic_t balance_cancel_req;
689 struct btrfs_balance_control *balance_ctl;
690 wait_queue_head_t balance_wait_q;
693 atomic_t reloc_cancel_req;
695 u32 data_chunk_allocations;
696 u32 metadata_ratio;
698 void *bdev_holder;
701 struct mutex scrub_lock;
702 atomic_t scrubs_running;
703 atomic_t scrub_pause_req;
704 atomic_t scrubs_paused;
705 atomic_t scrub_cancel_req;
706 wait_queue_head_t scrub_pause_wait;
711 refcount_t scrub_workers_refcnt;
712 u32 sectors_per_page;
713 struct workqueue_struct *scrub_workers;
715 struct btrfs_discard_ctl discard_ctl;
718 u64 qgroup_flags;
721 struct rb_root qgroup_tree;
722 spinlock_t qgroup_lock;
728 struct ulist *qgroup_ulist;
734 struct mutex qgroup_ioctl_lock;
737 struct list_head dirty_qgroups;
740 u64 qgroup_seq;
744 struct mutex qgroup_rescan_lock;
745 struct btrfs_key qgroup_rescan_progress;
746 struct btrfs_workqueue *qgroup_rescan_workers;
747 struct completion qgroup_rescan_completion;
748 struct btrfs_work qgroup_rescan_work;
750 bool qgroup_rescan_running;
751 u8 qgroup_drop_subtree_thres;
752 u64 qgroup_enable_gen;
758 int fs_error;
761 unsigned long fs_state;
763 struct btrfs_delayed_root *delayed_root;
766 spinlock_t buffer_lock;
768 struct radix_tree_root buffer_radix;
771 int backup_root_index;
774 struct btrfs_dev_replace dev_replace;
776 struct semaphore uuid_tree_rescan_sem;
779 struct work_struct async_reclaim_work;
780 struct work_struct async_data_reclaim_work;
781 struct work_struct preempt_reclaim_work;
784 struct work_struct reclaim_bgs_work;
786 struct list_head reclaim_bgs;
787 int bg_reclaim_threshold;
790 spinlock_t unused_bgs_lock;
792 struct list_head unused_bgs;
793 struct mutex unused_bg_unpin_mutex;
795 struct mutex reclaim_bgs_lock;
798 u32 nodesize;
799 u32 sectorsize;
801 u32 sectorsize_bits;
802 u32 csum_size;
803 u32 csums_per_leaf;
804 u32 stripesize;
810 u64 max_extent_size;
813 spinlock_t swapfile_pins_lock;
814 struct rb_root swapfile_pins;
816 struct crypto_shash *csum_shash;
819 enum btrfs_exclusive_operation exclusive_operation;
825 u64 zone_size;
828 struct queue_limits limits;
829 u64 max_zone_append_size;
831 struct mutex zoned_meta_io_lock;
832 spinlock_t treelog_bg_lock;
833 u64 treelog_bg;
839 spinlock_t relocation_bg_lock;
840 u64 data_reloc_bg;
841 struct mutex zoned_data_reloc_io_lock;
843 struct btrfs_block_group *active_meta_bg;
844 struct btrfs_block_group *active_system_bg;
846 u64 nr_global_roots;
848 spinlock_t zone_active_bgs_lock;
849 struct list_head zone_active_bgs;
852 struct btrfs_commit_stats commit_stats;
859 u64 last_root_drop_gen;
865 struct lockdep_map btrfs_trans_num_writers_map;
866 struct lockdep_map btrfs_trans_num_extwriters_map;
867 struct lockdep_map btrfs_state_change_map[4];
868 struct lockdep_map btrfs_trans_pending_ordered_map;
869 struct lockdep_map btrfs_ordered_extent_map;
872 spinlock_t ref_verify_lock;
873 struct rb_root block_tree;
898 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) in btrfs_get_fs_generation() argument