Lines Matching defs:btrfs_fs_info

425 struct btrfs_fs_info {  struct
426 u8 chunk_tree_uuid[BTRFS_UUID_SIZE];
427 unsigned long flags;
428 struct btrfs_root *tree_root;
429 struct btrfs_root *chunk_root;
430 struct btrfs_root *dev_root;
431 struct btrfs_root *fs_root;
432 struct btrfs_root *quota_root;
433 struct btrfs_root *uuid_root;
434 struct btrfs_root *data_reloc_root;
435 struct btrfs_root *block_group_root;
436 struct btrfs_root *stripe_root;
439 struct btrfs_root *log_root_tree;
442 rwlock_t global_root_lock;
443 struct rb_root global_root_tree;
445 spinlock_t fs_roots_radix_lock;
446 struct radix_tree_root fs_roots_radix;
449 rwlock_t block_group_cache_lock;
450 struct rb_root_cached block_group_cache_tree;
453 atomic64_t free_chunk_space;
456 struct extent_io_tree excluded_extents;
459 struct rb_root_cached mapping_tree;
460 rwlock_t mapping_tree_lock;
466 struct btrfs_block_rsv global_block_rsv;
468 struct btrfs_block_rsv trans_block_rsv;
493 * Must be written and read while holding btrfs_fs_info::commit_root_sem. argument
495 u64 last_reloc_trans;
501 u64 last_trans_log_full_commit;
502 unsigned long long mount_opt;
504 int compress_type;
505 int compress_level;
506 u32 commit_interval;
513 u64 max_inline;
515 struct btrfs_transaction *running_transaction;
516 wait_queue_head_t transaction_throttle;
517 wait_queue_head_t transaction_wait;
518 wait_queue_head_t transaction_blocked_wait;
519 wait_queue_head_t async_submit_wait;
531 spinlock_t super_lock;
532 struct btrfs_super_block *super_copy;
533 struct btrfs_super_block *super_for_commit;
534 struct super_block *sb;
535 struct inode *btree_inode;
536 struct mutex tree_log_mutex;
537 struct mutex transaction_kthread_mutex;
538 struct mutex cleaner_mutex;
539 struct mutex chunk_mutex;
545 struct mutex ro_block_group_mutex;
551 struct btrfs_stripe_hash_table *stripe_hash_table;
560 struct mutex ordered_operations_mutex;
562 struct rw_semaphore commit_root_sem;
564 struct rw_semaphore cleanup_work_sem;
566 struct rw_semaphore subvol_sem;
568 spinlock_t trans_lock;
573 struct mutex reloc_mutex;
575 struct list_head trans_list;
576 struct list_head dead_roots;
577 struct list_head caching_block_groups;
579 spinlock_t delayed_iput_lock;
580 struct list_head delayed_iputs;
581 atomic_t nr_delayed_iputs;
582 wait_queue_head_t delayed_iputs_wait;
584 atomic64_t tree_mod_seq;
587 rwlock_t tree_mod_log_lock;
588 struct rb_root tree_mod_log;
589 struct list_head tree_mod_seq_list;
591 atomic_t async_delalloc_pages;
594 spinlock_t ordered_root_lock;
603 struct list_head ordered_roots;
605 struct mutex delalloc_root_mutex;
606 spinlock_t delalloc_root_lock;
608 struct list_head delalloc_roots;
619 struct btrfs_workqueue *workers;
620 struct btrfs_workqueue *delalloc_workers;
621 struct btrfs_workqueue *flush_workers;
622 struct workqueue_struct *endio_workers;
623 struct workqueue_struct *endio_meta_workers;
624 struct workqueue_struct *rmw_workers;
625 struct workqueue_struct *compressed_write_workers;
626 struct btrfs_workqueue *endio_write_workers;
627 struct btrfs_workqueue *endio_freespace_worker;
628 struct btrfs_workqueue *caching_workers;
635 struct btrfs_workqueue *fixup_workers;
636 struct btrfs_workqueue *delayed_workers;
638 struct task_struct *transaction_kthread;
639 struct task_struct *cleaner_kthread;
640 u32 thread_pool_size;
642 struct kobject *space_info_kobj;
643 struct kobject *qgroups_kobj;
644 struct kobject *discard_kobj;
647 struct percpu_counter stats_read_blocks;
650 struct percpu_counter dirty_metadata_bytes;
651 struct percpu_counter delalloc_bytes;
652 struct percpu_counter ordered_bytes;
653 s32 dirty_metadata_batch;
654 s32 delalloc_batch;
656 struct percpu_counter evictable_extent_maps;
657 u64 em_shrinker_last_root;
658 u64 em_shrinker_last_ino;
659 atomic64_t em_shrinker_nr_to_scan;
660 struct work_struct em_shrinker_work;
663 struct list_head dirty_cowonly_roots;
665 struct btrfs_fs_devices *fs_devices;
672 struct list_head space_info;
674 struct btrfs_space_info *data_sinfo;
676 struct reloc_control *reloc_ctl;
679 struct btrfs_free_cluster data_alloc_cluster;
682 struct btrfs_free_cluster meta_alloc_cluster;
685 spinlock_t defrag_inodes_lock;
686 struct rb_root defrag_inodes;
687 atomic_t defrag_running;
690 seqlock_t profiles_lock;
696 u64 avail_data_alloc_bits;
697 u64 avail_metadata_alloc_bits;
698 u64 avail_system_alloc_bits;
701 spinlock_t balance_lock;
702 struct mutex balance_mutex;
703 atomic_t balance_pause_req;
704 atomic_t balance_cancel_req;
705 struct btrfs_balance_control *balance_ctl;
706 wait_queue_head_t balance_wait_q;
709 atomic_t reloc_cancel_req;
711 u32 data_chunk_allocations;
712 u32 metadata_ratio;
714 void *bdev_holder;
717 struct mutex scrub_lock;
718 atomic_t scrubs_running;
719 atomic_t scrub_pause_req;
720 atomic_t scrubs_paused;
721 atomic_t scrub_cancel_req;
722 wait_queue_head_t scrub_pause_wait;
727 refcount_t scrub_workers_refcnt;
728 struct workqueue_struct *scrub_workers;
730 struct btrfs_discard_ctl discard_ctl;
733 u64 qgroup_flags;
736 struct rb_root qgroup_tree;
737 spinlock_t qgroup_lock;
743 struct ulist *qgroup_ulist;
749 struct mutex qgroup_ioctl_lock;
752 struct list_head dirty_qgroups;
755 u64 qgroup_seq;
759 struct mutex qgroup_rescan_lock;
760 struct btrfs_key qgroup_rescan_progress;
761 struct btrfs_workqueue *qgroup_rescan_workers;
762 struct completion qgroup_rescan_completion;
763 struct btrfs_work qgroup_rescan_work;
765 bool qgroup_rescan_running;
766 u8 qgroup_drop_subtree_thres;
767 u64 qgroup_enable_gen;
773 int fs_error;
776 unsigned long fs_state;
778 struct btrfs_delayed_root *delayed_root;
781 spinlock_t buffer_lock;
783 struct radix_tree_root buffer_radix;
786 int backup_root_index;
789 struct btrfs_dev_replace dev_replace;
791 struct semaphore uuid_tree_rescan_sem;
794 struct work_struct async_reclaim_work;
795 struct work_struct async_data_reclaim_work;
796 struct work_struct preempt_reclaim_work;
799 struct work_struct reclaim_bgs_work;
801 struct list_head reclaim_bgs;
802 int bg_reclaim_threshold;
805 spinlock_t unused_bgs_lock;
807 struct list_head unused_bgs;
808 struct mutex unused_bg_unpin_mutex;
810 struct mutex reclaim_bgs_lock;
813 u32 nodesize;
814 u32 sectorsize;
816 u32 sectorsize_bits;
817 u32 csum_size;
818 u32 csums_per_leaf;
819 u32 stripesize;
825 u64 max_extent_size;
828 spinlock_t swapfile_pins_lock;
829 struct rb_root swapfile_pins;
831 struct crypto_shash *csum_shash;
834 enum btrfs_exclusive_operation exclusive_operation;
840 u64 zone_size;
843 struct queue_limits limits;
844 u64 max_zone_append_size;
846 struct mutex zoned_meta_io_lock;
847 spinlock_t treelog_bg_lock;
848 u64 treelog_bg;
854 spinlock_t relocation_bg_lock;
855 u64 data_reloc_bg;
856 struct mutex zoned_data_reloc_io_lock;
858 struct btrfs_block_group *active_meta_bg;
859 struct btrfs_block_group *active_system_bg;
861 u64 nr_global_roots;
863 spinlock_t zone_active_bgs_lock;
864 struct list_head zone_active_bgs;
867 struct btrfs_commit_stats commit_stats;
874 u64 last_root_drop_gen;
880 struct lockdep_map btrfs_trans_num_writers_map;
881 struct lockdep_map btrfs_trans_num_extwriters_map;
882 struct lockdep_map btrfs_state_change_map[4];
883 struct lockdep_map btrfs_trans_pending_ordered_map;
884 struct lockdep_map btrfs_ordered_extent_map;
887 spinlock_t ref_verify_lock;
888 struct rb_root block_tree;
913 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) in btrfs_get_fs_generation() argument