Lines Matching refs:btrfs_fs_info

485 bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr);
529 struct btrfs_fs_info { struct
906 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb() argument
972 struct btrfs_fs_info *fs_info;
1126 static inline u32 BTRFS_LEAF_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_LEAF_DATA_SIZE()
1134 static inline u32 BTRFS_MAX_ITEM_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_ITEM_SIZE()
1139 static inline u32 BTRFS_NODEPTRS_PER_BLOCK(const struct btrfs_fs_info *info) in BTRFS_NODEPTRS_PER_BLOCK()
1146 static inline u32 BTRFS_MAX_INLINE_DATA_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_INLINE_DATA_SIZE()
1152 static inline u32 BTRFS_MAX_XATTR_SIZE(const struct btrfs_fs_info *info) in BTRFS_MAX_XATTR_SIZE()
2376 u64 btrfs_csum_bytes_to_leaves(struct btrfs_fs_info *fs_info, u64 csum_bytes);
2382 static inline u64 btrfs_calc_insert_metadata_size(struct btrfs_fs_info *fs_info, in btrfs_calc_insert_metadata_size()
2392 static inline u64 btrfs_calc_metadata_size(struct btrfs_fs_info *fs_info, in btrfs_calc_metadata_size()
2398 int btrfs_add_excluded_extent(struct btrfs_fs_info *fs_info,
2403 void btrfs_cleanup_ref_head_accounting(struct btrfs_fs_info *fs_info,
2406 int btrfs_lookup_data_extent(struct btrfs_fs_info *fs_info, u64 start, u64 len);
2408 struct btrfs_fs_info *fs_info, u64 bytenr,
2410 int btrfs_pin_extent(struct btrfs_fs_info *fs_info,
2412 int btrfs_pin_extent_for_log_replay(struct btrfs_fs_info *fs_info,
2446 int btrfs_free_reserved_extent(struct btrfs_fs_info *fs_info,
2448 int btrfs_free_and_pin_reserved_extent(struct btrfs_fs_info *fs_info,
2450 void btrfs_prepare_extent_commit(struct btrfs_fs_info *fs_info);
2455 int btrfs_extent_readonly(struct btrfs_fs_info *fs_info, u64 bytenr);
2458 void btrfs_clear_space_info_full(struct btrfs_fs_info *info);
2488 void btrfs_subvolume_release_metadata(struct btrfs_fs_info *fs_info,
2494 int btrfs_error_unpin_extent_range(struct btrfs_fs_info *fs_info,
2496 int btrfs_discard_extent(struct btrfs_fs_info *fs_info, u64 bytenr,
2498 int btrfs_trim_fs(struct btrfs_fs_info *fs_info, struct fstrim_range *range);
2500 int btrfs_init_space_info(struct btrfs_fs_info *fs_info);
2502 struct btrfs_fs_info *fs_info);
2516 void btrfs_set_item_key_safe(struct btrfs_fs_info *fs_info,
2626 static inline int btrfs_fs_closing(struct btrfs_fs_info *fs_info) in btrfs_fs_closing()
2644 static inline int btrfs_need_cleaner_sleep(struct btrfs_fs_info *fs_info) in btrfs_need_cleaner_sleep()
2649 static inline void free_fs_info(struct btrfs_fs_info *fs_info) in free_fs_info()
2667 u64 btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info,
2669 void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info,
2692 int btrfs_find_orphan_roots(struct btrfs_fs_info *fs_info);
2704 int btrfs_uuid_tree_iterate(struct btrfs_fs_info *fs_info,
2705 int (*check_func)(struct btrfs_fs_info *, u8 *, u8,
2743 struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_fs_info *fs_info,
2788 struct btrfs_fs_info *fs_info, u64 bytenr, u64 len);
2843 int btrfs_start_delalloc_roots(struct btrfs_fs_info *fs_info, int nr);
2890 void btrfs_run_delayed_iputs(struct btrfs_fs_info *fs_info);
2891 int btrfs_wait_on_delayed_iputs(struct btrfs_fs_info *fs_info);
2918 void btrfs_update_ioctl_balance_args(struct btrfs_fs_info *fs_info,
2926 int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info);
2927 void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info);
2962 int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
2967 void btrfs_no_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...) in btrfs_no_printk()
2974 void btrfs_printk(const struct btrfs_fs_info *fs_info, const char *fmt, ...);
3135 static inline void btrfs_print_v0_err(struct btrfs_fs_info *fs_info) in btrfs_print_v0_err()
3143 void __btrfs_handle_fs_error(struct btrfs_fs_info *fs_info, const char *function,
3184 void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function,
3203 static inline void __btrfs_set_fs_incompat(struct btrfs_fs_info *fs_info, in __btrfs_set_fs_incompat()
3229 static inline void __btrfs_clear_fs_incompat(struct btrfs_fs_info *fs_info, in __btrfs_clear_fs_incompat()
3254 static inline bool __btrfs_fs_incompat(struct btrfs_fs_info *fs_info, u64 flag) in __btrfs_fs_incompat()
3265 static inline void __btrfs_set_fs_compat_ro(struct btrfs_fs_info *fs_info, in __btrfs_set_fs_compat_ro()
3291 static inline void __btrfs_clear_fs_compat_ro(struct btrfs_fs_info *fs_info, in __btrfs_clear_fs_compat_ro()
3316 static inline int __btrfs_fs_compat_ro(struct btrfs_fs_info *fs_info, u64 flag) in __btrfs_fs_compat_ro()
3340 int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start);
3356 int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
3359 void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
3360 void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
3361 int btrfs_scrub_cancel(struct btrfs_fs_info *info);
3363 int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
3373 void btrfs_bio_counter_inc_blocked(struct btrfs_fs_info *fs_info);
3374 void btrfs_bio_counter_inc_noblocked(struct btrfs_fs_info *fs_info);
3375 void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount);
3377 static inline void btrfs_bio_counter_dec(struct btrfs_fs_info *fs_info) in btrfs_bio_counter_dec()
3384 struct btrfs_fs_info *fs_info; /* tree to prefetch */
3406 static inline int btrfs_defrag_cancelled(struct btrfs_fs_info *fs_info) in btrfs_defrag_cancelled()
3418 static inline int btrfs_is_testing(struct btrfs_fs_info *fs_info) in btrfs_is_testing()
3423 static inline int btrfs_is_testing(struct btrfs_fs_info *fs_info) in btrfs_is_testing()