Home
last modified time | relevance | path

Searched refs:discardable_extents (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/fs/btrfs/
Ddiscard.c575 s32 discardable_extents; in btrfs_discard_calc_delay() local
581 discardable_extents = atomic_read(&discard_ctl->discardable_extents); in btrfs_discard_calc_delay()
582 if (!discardable_extents) in btrfs_discard_calc_delay()
594 if (discardable_extents < 0) in btrfs_discard_calc_delay()
595 atomic_add(-discardable_extents, in btrfs_discard_calc_delay()
596 &discard_ctl->discardable_extents); in btrfs_discard_calc_delay()
603 if (discardable_extents <= 0) { in btrfs_discard_calc_delay()
652 extents_delta = ctl->discardable_extents[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable()
653 ctl->discardable_extents[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable()
655 atomic_add(extents_delta, &discard_ctl->discardable_extents); in btrfs_discard_update_discardable()
[all …]
Dfree-space-cache.h67 s32 discardable_extents[BTRFS_STAT_NR_ENTRIES]; member
Dfree-space-cache.c1826 ctl->discardable_extents[BTRFS_STAT_CURR]--; in unlink_free_space()
1849 ctl->discardable_extents[BTRFS_STAT_CURR]++; in link_free_space()
1904 ctl->discardable_extents[BTRFS_STAT_CURR] += extent_delta; in bitmap_clear_bits()
1944 ctl->discardable_extents[BTRFS_STAT_CURR] += extent_delta; in bitmap_set_bits()
2137 ctl->discardable_extents[BTRFS_STAT_CURR] -= in free_bitmap()
2239 ctl->discardable_extents[BTRFS_STAT_CURR] += in add_bytes_to_bitmap()
3003 ctl->discardable_extents[BTRFS_STAT_CURR]--; in __btrfs_return_cluster_to_free_space()
3013 ctl->discardable_extents[BTRFS_STAT_CURR]++; in __btrfs_return_cluster_to_free_space()
3303 ctl->discardable_extents[BTRFS_STAT_CURR]--; in btrfs_alloc_from_cluster()
3846 ctl->discardable_extents[BTRFS_STAT_CURR] += in reset_trimming_bitmap()
[all …]
Dfs.h324 atomic_t discardable_extents; member
Dsysfs.c467 atomic_read(&fs_info->discard_ctl.discardable_extents)); in btrfs_discardable_extents_show()
469 BTRFS_ATTR(discard, discardable_extents, btrfs_discardable_extents_show);
602 BTRFS_ATTR_PTR(discard, discardable_extents),