• Home
  • Raw
  • Download

Lines Matching +full:setup +full:- +full:duration +full:- +full:ns

1 /* SPDX-License-Identifier: GPL-2.0 */
10 #include "extent-io-tree.h"
12 #include "async-thread.h"
13 #include "block-rsv.h"
46 * Runtime (in-memory) states of filesystem
63 /* The btrfs_fs_info created for self-tests */
247 /* Seconds since 1-Jan-1970 */
249 /* Seconds since 1-Jan-1970 */
353 /* The maximum commit duration so far in ns */
355 /* The last commit duration in ns */
357 /* The total commit duration in ns */
393 /* logical->physical extent mapping */
434 * extent. The write side(mount/remount) is under ->s_umount lock,
481 * function happens to be doing non-waiting preflush before jumping
517 /* This is used to protect the following list -- ordered_roots. */
583 * The space_info list is effectively read only after initial setup.
700 /* Entries are eb->start / sectorsize */
785 * Last generation where we dropped a non-relocation root.
818 WRITE_ONCE(fs_info->last_root_drop_gen, gen); in btrfs_set_last_root_drop_gen()
823 return READ_ONCE(fs_info->last_root_drop_gen); in btrfs_get_last_root_drop_gen()
833 const u64 num_csums = csum_bytes >> fs_info->sectorsize_bits; in btrfs_csum_bytes_to_leaves()
835 return DIV_ROUND_UP_ULL(num_csums, fs_info->csums_per_leaf); in btrfs_csum_bytes_to_leaves()
845 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * 2 * num_items; in btrfs_calc_insert_metadata_size()
855 return (u64)fs_info->nodesize * BTRFS_MAX_LEVEL * num_items; in btrfs_calc_metadata_size()
858 #define BTRFS_MAX_EXTENT_ITEM_SIZE(r) ((BTRFS_LEAF_DATA_SIZE(r->fs_info) >> 4) - \
863 return IS_ENABLED(CONFIG_BLK_DEV_ZONED) && fs_info->zone_size > 0; in btrfs_is_zoned()
867 * Count how many fs_info->max_extent_size cover the @size
873 return div_u64(size + BTRFS_MAX_EXTENT_SIZE - 1, BTRFS_MAX_EXTENT_SIZE); in count_max_extents()
876 return div_u64(size + fs_info->max_extent_size - 1, fs_info->max_extent_size); in count_max_extents()
899 (!!(btrfs_super_incompat_flags((fs_info)->super_copy) & (flags)))
902 (!!(btrfs_super_compat_ro_flags((fs_info)->super_copy) & (flags)))
925 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \
932 btrfs_set_opt(fs_info->mount_opt, opt); \
939 btrfs_clear_opt(fs_info->mount_opt, opt); \
945 if (test_bit(BTRFS_FS_CLOSING_START, &fs_info->flags)) { in btrfs_fs_closing()
946 if (test_bit(BTRFS_FS_CLOSING_DONE, &fs_info->flags)) in btrfs_fs_closing()
963 return test_bit(BTRFS_FS_STATE_RO, &fs_info->fs_state) || in btrfs_need_cleaner_sleep()
969 clear_and_wake_up_bit(BTRFS_FS_UNFINISHED_DROPS, &fs_info->flags); in btrfs_wake_unfinished_drop()
972 #define BTRFS_FS_ERROR(fs_info) (READ_ONCE((fs_info)->fs_error))
976 &(fs_info)->fs_state)))
984 return test_bit(BTRFS_FS_STATE_DUMMY_FS_INFO, &fs_info->fs_state); in btrfs_is_testing()