Home
last modified time | relevance | path

Searched refs:btrfs_fs_info (Results 1 – 25 of 95) sorted by relevance

1234

/linux/fs/btrfs/
H A Ddisk-io.h19 struct btrfs_fs_info;
44 void btrfs_check_leaked_roots(const struct btrfs_fs_info *fs_info);
45 void btrfs_init_fs_info(struct btrfs_fs_info *fs_info);
46 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr,
49 struct btrfs_fs_info *fs_info,
52 int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info);
53 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info,
56 void __cold close_ctree(struct btrfs_fs_info *fs_info);
57 int btrfs_validate_super(const struct btrfs_fs_info *fs_info,
59 int btrfs_check_features(struct btrfs_fs_info *fs_inf
[all...]
H A Dsubpage.h104 static inline bool btrfs_meta_is_subpage(const struct btrfs_fs_info *fs_info) in btrfs_meta_is_subpage()
108 static inline bool btrfs_is_subpage(const struct btrfs_fs_info *fs_info, in btrfs_is_subpage()
116 int btrfs_attach_folio_state(const struct btrfs_fs_info *fs_info,
118 void btrfs_detach_folio_state(const struct btrfs_fs_info *fs_info, struct folio *folio,
122 struct btrfs_folio_state *btrfs_alloc_folio_state(const struct btrfs_fs_info *fs_info,
129 void btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio);
130 void btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio);
132 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info,
134 void btrfs_folio_set_lock(const struct btrfs_fs_info *fs_info,
136 void btrfs_folio_end_lock_bitmap(const struct btrfs_fs_info *fs_inf
[all...]
H A Ddev-replace.h13 struct btrfs_fs_info;
19 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info);
21 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info,
23 void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info,
25 int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);
26 void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info);
27 int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
32 void btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info);
33 void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
35 static inline void btrfs_bio_counter_dec(struct btrfs_fs_info *fs_inf
[all...]
H A Dblock-rsv.h14 struct btrfs_fs_info;
64 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info,
66 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info,
69 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info,
71 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info,
75 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info,
84 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info,
87 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info);
88 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_info);
89 void btrfs_release_global_block_rsv(struct btrfs_fs_info *fs_inf
[all...]
H A Dsysfs.h11 struct btrfs_fs_info;
32 void btrfs_sysfs_feature_update(struct btrfs_fs_info *fs_info);
37 int btrfs_sysfs_add_mounted(struct btrfs_fs_info *fs_info);
38 void btrfs_sysfs_remove_mounted(struct btrfs_fs_info *fs_info);
40 int btrfs_sysfs_add_space_info_type(struct btrfs_fs_info *fs_info,
45 int btrfs_sysfs_add_one_qgroup(struct btrfs_fs_info *fs_info,
47 void btrfs_sysfs_del_qgroups(struct btrfs_fs_info *fs_info);
48 int btrfs_sysfs_add_qgroups(struct btrfs_fs_info *fs_info);
49 void btrfs_sysfs_del_one_qgroup(struct btrfs_fs_info *fs_info,
H A Dqgroup.h19 struct btrfs_fs_info;
331 enum btrfs_qgroup_mode btrfs_qgroup_mode(const struct btrfs_fs_info *fs_info);
332 bool btrfs_qgroup_enabled(const struct btrfs_fs_info *fs_info);
333 bool btrfs_qgroup_full_accounting(const struct btrfs_fs_info *fs_info);
334 int btrfs_quota_enable(struct btrfs_fs_info *fs_info,
336 int btrfs_quota_disable(struct btrfs_fs_info *fs_info);
337 int btrfs_qgroup_rescan(struct btrfs_fs_info *fs_info);
338 void btrfs_qgroup_rescan_resume(struct btrfs_fs_info *fs_info);
339 int btrfs_qgroup_wait_for_completion(struct btrfs_fs_info *fs_info,
347 int btrfs_qgroup_cleanup_dropped_subvolume(struct btrfs_fs_info *fs_inf
[all...]
H A Dspace-info.h15 struct btrfs_fs_info;
109 struct btrfs_fs_info *fs_info;
250 struct btrfs_fs_info *fs_info = sinfo->fs_info; \
269 int btrfs_init_space_info(struct btrfs_fs_info *fs_info);
270 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info,
274 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info,
278 void btrfs_clear_space_info_full(struct btrfs_fs_info *info);
279 void btrfs_dump_space_info(struct btrfs_fs_info *fs_info,
282 int btrfs_reserve_metadata_bytes(struct btrfs_fs_info *fs_info,
286 void btrfs_try_granting_tickets(struct btrfs_fs_info *fs_inf
[all...]
H A Ddelayed-ref.h21 struct btrfs_fs_info;
308 static inline u64 btrfs_calc_delayed_ref_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_bytes()
329 static inline u64 btrfs_calc_delayed_ref_csum_bytes(const struct btrfs_fs_info *fs_info, in btrfs_calc_delayed_ref_csum_bytes()
385 void btrfs_merge_delayed_refs(struct btrfs_fs_info *fs_info,
390 btrfs_find_delayed_ref_head(const struct btrfs_fs_info *fs_info,
397 void btrfs_delete_ref_head(const struct btrfs_fs_info *fs_info,
402 const struct btrfs_fs_info *fs_info,
408 int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, u64 seq);
410 void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr_refs, int nr_csums);
412 void btrfs_inc_delayed_refs_rsv_bg_inserts(struct btrfs_fs_info *fs_inf
[all...]
H A Dblock-group.h19 struct btrfs_fs_info;
119 struct btrfs_fs_info *fs_info;
192 * 1) struct btrfs_fs_info::unused_bgs
193 * 2) struct btrfs_fs_info::reclaim_bgs
303 struct btrfs_fs_info *info, u64 bytenr);
305 struct btrfs_fs_info *info, u64 bytenr);
310 void btrfs_dec_block_group_reservations(struct btrfs_fs_info *fs_info,
313 struct btrfs_block_group *btrfs_inc_nocow_writers(struct btrfs_fs_info *fs_info,
325 struct btrfs_fs_info *fs_info,
329 void btrfs_delete_unused_bgs(struct btrfs_fs_info *fs_inf
[all...]
H A Dscrub.h8 struct btrfs_fs_info;
12 int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
15 void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
16 void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
17 int btrfs_scrub_cancel(struct btrfs_fs_info *info);
19 int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
H A Ddiscard.h9 struct btrfs_fs_info;
34 void btrfs_discard_punt_unused_bgs_list(struct btrfs_fs_info *fs_info);
35 void btrfs_discard_resume(struct btrfs_fs_info *fs_info);
36 void btrfs_discard_stop(struct btrfs_fs_info *fs_info);
37 void btrfs_discard_init(struct btrfs_fs_info *fs_info);
38 void btrfs_discard_cleanup(struct btrfs_fs_info *fs_info);
H A Dfs.h110 /* The btrfs_fs_info created for self-tests */
427 struct btrfs_fs_info { struct
497 * Must be written and read while holding btrfs_fs_info::commit_root_sem. argument
908 static inline u64 btrfs_get_fs_generation(const struct btrfs_fs_info *fs_info) in btrfs_get_fs_generation() argument
913 static inline void btrfs_set_fs_generation(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_fs_generation()
918 static inline u64 btrfs_get_last_trans_committed(const struct btrfs_fs_info *fs_info) in btrfs_get_last_trans_committed()
923 static inline void btrfs_set_last_trans_committed(struct btrfs_fs_info *fs_info, u64 gen) in btrfs_set_last_trans_committed()
928 static inline void btrfs_set_last_root_drop_gen(struct btrfs_fs_info *fs_info, in btrfs_set_last_root_drop_gen()
934 static inline u64 btrfs_get_last_root_drop_gen(const struct btrfs_fs_info *fs_info) in btrfs_get_last_root_drop_gen()
944 const struct btrfs_fs_info *fs_inf in btrfs_csum_bytes_to_leaves()
428 chunk_tree_uuidbtrfs_fs_info global() argument
429 flagsbtrfs_fs_info global() argument
430 tree_rootbtrfs_fs_info global() argument
431 chunk_rootbtrfs_fs_info global() argument
432 dev_rootbtrfs_fs_info global() argument
433 fs_rootbtrfs_fs_info global() argument
434 quota_rootbtrfs_fs_info global() argument
435 uuid_rootbtrfs_fs_info global() argument
436 data_reloc_rootbtrfs_fs_info global() argument
437 block_group_rootbtrfs_fs_info global() argument
438 stripe_rootbtrfs_fs_info global() argument
441 log_root_treebtrfs_fs_info global() argument
444 global_root_lockbtrfs_fs_info global() argument
445 global_root_treebtrfs_fs_info global() argument
447 fs_roots_radix_lockbtrfs_fs_info global() argument
448 fs_roots_radixbtrfs_fs_info global() argument
451 block_group_cache_lockbtrfs_fs_info global() argument
452 block_group_cache_treebtrfs_fs_info global() argument
455 free_chunk_spacebtrfs_fs_info global() argument
458 excluded_extentsbtrfs_fs_info global() argument
461 mapping_treebtrfs_fs_info global() argument
462 mapping_tree_lockbtrfs_fs_info global() argument
468 global_block_rsvbtrfs_fs_info global() argument
470 trans_block_rsvbtrfs_fs_info global() argument
472 chunk_block_rsvbtrfs_fs_info global() argument
499 last_reloc_transbtrfs_fs_info global() argument
505 last_trans_log_full_commitbtrfs_fs_info global() argument
506 mount_optbtrfs_fs_info global() argument
508 compress_typebtrfs_fs_info global() argument
509 compress_levelbtrfs_fs_info global() argument
510 commit_intervalbtrfs_fs_info global() argument
517 max_inlinebtrfs_fs_info global() argument
519 running_transactionbtrfs_fs_info global() argument
520 transaction_throttlebtrfs_fs_info global() argument
521 transaction_waitbtrfs_fs_info global() argument
522 transaction_blocked_waitbtrfs_fs_info global() argument
523 async_submit_waitbtrfs_fs_info global() argument
535 super_lockbtrfs_fs_info global() argument
536 super_copybtrfs_fs_info global() argument
537 super_for_commitbtrfs_fs_info global() argument
538 sbbtrfs_fs_info global() argument
539 btree_inodebtrfs_fs_info global() argument
540 tree_log_mutexbtrfs_fs_info global() argument
541 transaction_kthread_mutexbtrfs_fs_info global() argument
542 cleaner_mutexbtrfs_fs_info global() argument
543 chunk_mutexbtrfs_fs_info global() argument
549 ro_block_group_mutexbtrfs_fs_info global() argument
555 stripe_hash_tablebtrfs_fs_info global() argument
564 ordered_operations_mutexbtrfs_fs_info global() argument
566 commit_root_sembtrfs_fs_info global() argument
568 cleanup_work_sembtrfs_fs_info global() argument
570 subvol_sembtrfs_fs_info global() argument
572 trans_lockbtrfs_fs_info global() argument
577 reloc_mutexbtrfs_fs_info global() argument
579 trans_listbtrfs_fs_info global() argument
580 dead_rootsbtrfs_fs_info global() argument
581 caching_block_groupsbtrfs_fs_info global() argument
583 delayed_iput_lockbtrfs_fs_info global() argument
584 delayed_iputsbtrfs_fs_info global() argument
585 nr_delayed_iputsbtrfs_fs_info global() argument
586 delayed_iputs_waitbtrfs_fs_info global() argument
588 tree_mod_seqbtrfs_fs_info global() argument
591 tree_mod_log_lockbtrfs_fs_info global() argument
592 tree_mod_logbtrfs_fs_info global() argument
593 tree_mod_seq_listbtrfs_fs_info global() argument
595 async_delalloc_pagesbtrfs_fs_info global() argument
598 ordered_root_lockbtrfs_fs_info global() argument
607 ordered_rootsbtrfs_fs_info global() argument
609 delalloc_root_mutexbtrfs_fs_info global() argument
610 delalloc_root_lockbtrfs_fs_info global() argument
612 delalloc_rootsbtrfs_fs_info global() argument
623 workersbtrfs_fs_info global() argument
624 delalloc_workersbtrfs_fs_info global() argument
625 flush_workersbtrfs_fs_info global() argument
626 endio_workersbtrfs_fs_info global() argument
627 endio_meta_workersbtrfs_fs_info global() argument
628 rmw_workersbtrfs_fs_info global() argument
629 compressed_write_workersbtrfs_fs_info global() argument
630 endio_write_workersbtrfs_fs_info global() argument
631 endio_freespace_workerbtrfs_fs_info global() argument
632 caching_workersbtrfs_fs_info global() argument
639 fixup_workersbtrfs_fs_info global() argument
640 delayed_workersbtrfs_fs_info global() argument
642 transaction_kthreadbtrfs_fs_info global() argument
643 cleaner_kthreadbtrfs_fs_info global() argument
644 thread_pool_sizebtrfs_fs_info global() argument
646 space_info_kobjbtrfs_fs_info global() argument
647 qgroups_kobjbtrfs_fs_info global() argument
648 discard_kobjbtrfs_fs_info global() argument
651 stats_read_blocksbtrfs_fs_info global() argument
654 dirty_metadata_bytesbtrfs_fs_info global() argument
655 delalloc_bytesbtrfs_fs_info global() argument
656 ordered_bytesbtrfs_fs_info global() argument
657 dirty_metadata_batchbtrfs_fs_info global() argument
658 delalloc_batchbtrfs_fs_info global() argument
660 evictable_extent_mapsbtrfs_fs_info global() argument
661 em_shrinker_last_rootbtrfs_fs_info global() argument
662 em_shrinker_last_inobtrfs_fs_info global() argument
663 em_shrinker_nr_to_scanbtrfs_fs_info global() argument
664 em_shrinker_workbtrfs_fs_info global() argument
667 dirty_cowonly_rootsbtrfs_fs_info global() argument
669 fs_devicesbtrfs_fs_info global() argument
676 space_infobtrfs_fs_info global() argument
678 data_sinfobtrfs_fs_info global() argument
680 reloc_ctlbtrfs_fs_info global() argument
683 data_alloc_clusterbtrfs_fs_info global() argument
686 meta_alloc_clusterbtrfs_fs_info global() argument
689 defrag_inodes_lockbtrfs_fs_info global() argument
690 defrag_inodesbtrfs_fs_info global() argument
691 defrag_runningbtrfs_fs_info global() argument
694 profiles_lockbtrfs_fs_info global() argument
700 avail_data_alloc_bitsbtrfs_fs_info global() argument
701 avail_metadata_alloc_bitsbtrfs_fs_info global() argument
702 avail_system_alloc_bitsbtrfs_fs_info global() argument
705 balance_lockbtrfs_fs_info global() argument
706 balance_mutexbtrfs_fs_info global() argument
707 balance_pause_reqbtrfs_fs_info global() argument
708 balance_cancel_reqbtrfs_fs_info global() argument
709 balance_ctlbtrfs_fs_info global() argument
710 balance_wait_qbtrfs_fs_info global() argument
713 reloc_cancel_reqbtrfs_fs_info global() argument
715 data_chunk_allocationsbtrfs_fs_info global() argument
716 metadata_ratiobtrfs_fs_info global() argument
719 scrub_lockbtrfs_fs_info global() argument
720 scrubs_runningbtrfs_fs_info global() argument
721 scrub_pause_reqbtrfs_fs_info global() argument
722 scrubs_pausedbtrfs_fs_info global() argument
723 scrub_cancel_reqbtrfs_fs_info global() argument
724 scrub_pause_waitbtrfs_fs_info global() argument
729 scrub_workers_refcntbtrfs_fs_info global() argument
730 scrub_workersbtrfs_fs_info global() argument
732 discard_ctlbtrfs_fs_info global() argument
735 qgroup_flagsbtrfs_fs_info global() argument
738 qgroup_treebtrfs_fs_info global() argument
739 qgroup_lockbtrfs_fs_info global() argument
745 qgroup_ioctl_lockbtrfs_fs_info global() argument
748 dirty_qgroupsbtrfs_fs_info global() argument
751 qgroup_seqbtrfs_fs_info global() argument
755 qgroup_rescan_lockbtrfs_fs_info global() argument
756 qgroup_rescan_progressbtrfs_fs_info global() argument
757 qgroup_rescan_workersbtrfs_fs_info global() argument
758 qgroup_rescan_completionbtrfs_fs_info global() argument
759 qgroup_rescan_workbtrfs_fs_info global() argument
761 qgroup_rescan_runningbtrfs_fs_info global() argument
762 qgroup_drop_subtree_thresbtrfs_fs_info global() argument
763 qgroup_enable_genbtrfs_fs_info global() argument
769 fs_errorbtrfs_fs_info global() argument
772 fs_statebtrfs_fs_info global() argument
774 delayed_rootbtrfs_fs_info global() argument
777 buffer_treebtrfs_fs_info global() argument
780 backup_root_indexbtrfs_fs_info global() argument
783 dev_replacebtrfs_fs_info global() argument
785 uuid_tree_rescan_sembtrfs_fs_info global() argument
788 async_reclaim_workbtrfs_fs_info global() argument
789 async_data_reclaim_workbtrfs_fs_info global() argument
790 preempt_reclaim_workbtrfs_fs_info global() argument
793 reclaim_bgs_workbtrfs_fs_info global() argument
795 reclaim_bgsbtrfs_fs_info global() argument
796 bg_reclaim_thresholdbtrfs_fs_info global() argument
799 unused_bgs_lockbtrfs_fs_info global() argument
801 unused_bgsbtrfs_fs_info global() argument
802 unused_bg_unpin_mutexbtrfs_fs_info global() argument
804 reclaim_bgs_lockbtrfs_fs_info global() argument
807 nodesizebtrfs_fs_info global() argument
808 nodesize_bitsbtrfs_fs_info global() argument
809 sectorsizebtrfs_fs_info global() argument
811 sectorsize_bitsbtrfs_fs_info global() argument
812 csum_sizebtrfs_fs_info global() argument
813 csums_per_leafbtrfs_fs_info global() argument
814 stripesizebtrfs_fs_info global() argument
820 max_extent_sizebtrfs_fs_info global() argument
823 swapfile_pins_lockbtrfs_fs_info global() argument
824 swapfile_pinsbtrfs_fs_info global() argument
826 csum_shashbtrfs_fs_info global() argument
829 exclusive_operationbtrfs_fs_info global() argument
835 zone_sizebtrfs_fs_info global() argument
838 limitsbtrfs_fs_info global() argument
839 max_zone_append_sizebtrfs_fs_info global() argument
841 zoned_meta_io_lockbtrfs_fs_info global() argument
842 treelog_bg_lockbtrfs_fs_info global() argument
843 treelog_bgbtrfs_fs_info global() argument
849 relocation_bg_lockbtrfs_fs_info global() argument
850 data_reloc_bgbtrfs_fs_info global() argument
851 zoned_data_reloc_io_lockbtrfs_fs_info global() argument
853 active_meta_bgbtrfs_fs_info global() argument
854 active_system_bgbtrfs_fs_info global() argument
856 nr_global_rootsbtrfs_fs_info global() argument
858 zone_active_bgs_lockbtrfs_fs_info global() argument
859 zone_active_bgsbtrfs_fs_info global() argument
862 commit_statsbtrfs_fs_info global() argument
869 last_root_drop_genbtrfs_fs_info global() argument
875 btrfs_trans_num_writers_mapbtrfs_fs_info global() argument
876 btrfs_trans_num_extwriters_mapbtrfs_fs_info global() argument
877 btrfs_state_change_mapbtrfs_fs_info global() argument
878 btrfs_trans_pending_ordered_mapbtrfs_fs_info global() argument
879 btrfs_ordered_extent_mapbtrfs_fs_info global() argument
882 ref_verify_lockbtrfs_fs_info global() argument
883 block_treebtrfs_fs_info global() argument
[all...]
H A Drelocation.h9 struct btrfs_fs_info;
15 int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start,
20 int btrfs_recover_relocation(struct btrfs_fs_info *fs_info);
30 int btrfs_should_cancel_balance(const struct btrfs_fs_info *fs_info);
31 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr);
33 u64 btrfs_get_reloc_bg_bytenr(const struct btrfs_fs_info *fs_info);
H A Dsubpage.c66 int btrfs_attach_folio_state(const struct btrfs_fs_info *fs_info, in btrfs_attach_folio_state()
98 void btrfs_detach_folio_state(const struct btrfs_fs_info *fs_info, struct folio *folio, in btrfs_detach_folio_state()
116 struct btrfs_folio_state *btrfs_alloc_folio_state(const struct btrfs_fs_info *fs_info, in btrfs_alloc_folio_state()
148 void btrfs_folio_inc_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) in btrfs_folio_inc_eb_refs()
162 void btrfs_folio_dec_eb_refs(const struct btrfs_fs_info *fs_info, struct folio *folio) in btrfs_folio_dec_eb_refs()
177 static void btrfs_subpage_assert(const struct btrfs_fs_info *fs_info, in btrfs_subpage_assert()
223 static bool btrfs_subpage_end_and_test_lock(const struct btrfs_fs_info *fs_info, in btrfs_subpage_end_and_test_lock()
275 void btrfs_folio_end_lock(const struct btrfs_fs_info *fs_info, in btrfs_folio_end_lock()
305 void btrfs_folio_end_lock_bitmap(const struct btrfs_fs_info *fs_info, in btrfs_folio_end_lock_bitmap()
361 void btrfs_subpage_set_uptodate(const struct btrfs_fs_info *fs_inf
[all...]
H A Dsuper.h11 struct btrfs_fs_info;
13 bool btrfs_check_options(const struct btrfs_fs_info *info,
17 char *btrfs_get_subvol_name_from_objectid(struct btrfs_fs_info *fs_info,
19 void btrfs_set_free_space_cache_settings(struct btrfs_fs_info *fs_info);
21 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb()
H A Dextent-tree.h12 struct btrfs_fs_info;
105 u64 btrfs_cleanup_ref_head_accounting(struct btrfs_fs_info *fs_info,
108 int btrfs_lookup_data_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len);
110 struct btrfs_fs_info *fs_info, u64 bytenr,
150 u64 btrfs_get_extent_owner_root(struct btrfs_fs_info *fs_info,
152 int btrfs_free_reserved_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len,
164 void btrfs_error_unpin_extent_range(struct btrfs_fs_info *fs_info, u64 start, u64 end);
165 int btrfs_discard_extent(struct btrfs_fs_info *fs_info, u64 bytenr,
167 int btrfs_trim_fs(struct btrfs_fs_info *fs_info, struct fstrim_range *range);
H A Dasync-thread.h14 struct btrfs_fs_info;
32 struct btrfs_workqueue *btrfs_alloc_workqueue(struct btrfs_fs_info *fs_info,
38 struct btrfs_fs_info *fs_info, const char *name,
46 struct btrfs_fs_info * __pure btrfs_work_owner(const struct btrfs_work *work);
47 struct btrfs_fs_info * __pure btrfs_workqueue_owner(const struct btrfs_workqueue *wq);
H A Dfs.c60 bool btrfs_exclop_start(struct btrfs_fs_info *fs_info, in btrfs_exclop_start()
86 bool btrfs_exclop_start_try_lock(struct btrfs_fs_info *fs_info, in btrfs_exclop_start_try_lock()
99 void btrfs_exclop_start_unlock(struct btrfs_fs_info *fs_info) in btrfs_exclop_start_unlock()
104 void btrfs_exclop_finish(struct btrfs_fs_info *fs_info) in btrfs_exclop_finish()
112 void btrfs_exclop_balance(struct btrfs_fs_info *fs_info, in btrfs_exclop_balance()
137 void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_incompat()
160 void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_incompat()
183 void __btrfs_set_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_set_fs_compat_ro()
206 void __btrfs_clear_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag, in __btrfs_clear_fs_compat_ro()
H A Dtransaction.h25 struct btrfs_fs_info;
114 struct btrfs_fs_info *fs_info;
166 struct btrfs_fs_info *fs_info;
284 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid);
287 void btrfs_maybe_wake_unfinished_drop(struct btrfs_fs_info *fs_info);
288 int btrfs_clean_one_deleted_snapshot(struct btrfs_fs_info *fs_info);
294 void btrfs_throttle(struct btrfs_fs_info *fs_info);
297 int btrfs_write_marked_extents(struct btrfs_fs_info *fs_info,
300 int btrfs_transaction_blocked(struct btrfs_fs_info *info);
H A Dspace-info.c189 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full()
209 static u64 calc_chunk_size(const struct btrfs_fs_info *fs_info, u64 flags) in calc_chunk_size()
237 static void init_space_info(struct btrfs_fs_info *info, in init_space_info()
261 struct btrfs_fs_info *fs_info = parent->fs_info; in create_space_info_sub_group()
285 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info()
322 int btrfs_init_space_info(struct btrfs_fs_info *fs_info) in btrfs_init_space_info()
359 void btrfs_add_bg_to_space_info(struct btrfs_fs_info *info, in btrfs_add_bg_to_space_info()
387 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info()
402 static u64 calc_effective_data_chunk_size(struct btrfs_fs_info *fs_info) in calc_effective_data_chunk_size()
424 static u64 calc_available_free_space(struct btrfs_fs_info *fs_inf
[all...]
H A Dbio.h16 struct btrfs_fs_info;
80 struct btrfs_fs_info *fs_info;
100 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_fs_info *fs_info,
103 struct btrfs_fs_info *fs_info,
112 int btrfs_repair_io_failure(struct btrfs_fs_info *fs_info, u64 ino, u64 start,
H A Ddefrag.h11 struct btrfs_fs_info;
22 int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info);
23 void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info);
26 static inline int btrfs_defrag_cancelled(struct btrfs_fs_info *fs_info) in btrfs_defrag_cancelled()
H A Dbackref.h25 struct btrfs_fs_info;
88 struct btrfs_fs_info *fs_info;
216 int extent_from_logical(struct btrfs_fs_info *fs_info, u64 logical,
228 int iterate_inodes_from_logical(u64 logical, struct btrfs_fs_info *fs_info,
276 struct btrfs_fs_info *fs_info;
283 struct btrfs_backref_iter *btrfs_backref_iter_alloc(struct btrfs_fs_info *fs_info);
412 struct btrfs_fs_info *fs_info;
423 void btrfs_backref_init_cache(struct btrfs_fs_info *fs_info,
444 static inline void btrfs_backref_panic(struct btrfs_fs_info *fs_info, in btrfs_backref_panic()
H A Dblock-rsv.c104 static u64 block_rsv_release_bytes(struct btrfs_fs_info *fs_info, in block_rsv_release_bytes()
181 void btrfs_init_metadata_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_init_metadata_block_rsv()
190 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_alloc_block_rsv()
203 void btrfs_free_block_rsv(struct btrfs_fs_info *fs_info, in btrfs_free_block_rsv()
212 int btrfs_block_rsv_add(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_add()
243 int btrfs_block_rsv_refill(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_refill()
272 u64 btrfs_block_rsv_release(struct btrfs_fs_info *fs_info, in btrfs_block_rsv_release()
323 void btrfs_update_global_block_rsv(struct btrfs_fs_info *fs_info) in btrfs_update_global_block_rsv()
403 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_init_root_block_rsv()
430 void btrfs_init_global_block_rsv(struct btrfs_fs_info *fs_inf
[all...]
/linux/fs/btrfs/tests/
H A Dbtrfs-tests.h49 struct btrfs_fs_info *btrfs_alloc_dummy_fs_info(u32 nodesize, u32 sectorsize);
50 void btrfs_free_dummy_fs_info(struct btrfs_fs_info *fs_info);
53 btrfs_alloc_dummy_block_group(struct btrfs_fs_info *fs_info, unsigned long length);
56 struct btrfs_fs_info *fs_info);
57 void btrfs_init_dummy_transaction(struct btrfs_transaction *trans, struct btrfs_fs_info *fs_info);
58 struct btrfs_device *btrfs_alloc_dummy_device(struct btrfs_fs_info *fs_info);

1234