Home
last modified time | relevance | path

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

/Linux-v5.10/fs/btrfs/
Ddiscard.c519 s64 discardable_bytes; in btrfs_discard_calc_delay() local
541 discardable_bytes = atomic64_read(&discard_ctl->discardable_bytes); in btrfs_discard_calc_delay()
542 if (discardable_bytes < 0) in btrfs_discard_calc_delay()
543 atomic64_add(-discardable_bytes, in btrfs_discard_calc_delay()
544 &discard_ctl->discardable_bytes); in btrfs_discard_calc_delay()
594 bytes_delta = ctl->discardable_bytes[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable()
595 ctl->discardable_bytes[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable()
597 atomic64_add(bytes_delta, &discard_ctl->discardable_bytes); in btrfs_discard_update_discardable()
598 ctl->discardable_bytes[BTRFS_STAT_PREV] = in btrfs_discard_update_discardable()
599 ctl->discardable_bytes[BTRFS_STAT_CURR]; in btrfs_discard_update_discardable()
[all …]
Dfree-space-cache.h55 s64 discardable_bytes[BTRFS_STAT_NR_ENTRIES]; member
Dfree-space-cache.c823 ctl->discardable_bytes[BTRFS_STAT_CURR] += e->bytes; in __load_free_space_cache()
1643 ctl->discardable_bytes[BTRFS_STAT_CURR] -= info->bytes; in __unlink_free_space()
1667 ctl->discardable_bytes[BTRFS_STAT_CURR] += info->bytes; in link_free_space()
1740 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bytes; in __bitmap_clear_bits()
1778 ctl->discardable_bytes[BTRFS_STAT_CURR] += bytes; in bitmap_set_bits()
1963 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bitmap_info->bytes; in free_bitmap()
2065 ctl->discardable_bytes[BTRFS_STAT_CURR] += info->bytes; in add_bytes_to_bitmap()
2734 ctl->discardable_bytes[BTRFS_STAT_CURR] -= in __btrfs_return_cluster_to_free_space()
2744 ctl->discardable_bytes[BTRFS_STAT_CURR] += in __btrfs_return_cluster_to_free_space()
3050 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bytes; in btrfs_alloc_from_cluster()
[all …]
Dsysfs.c364 atomic64_read(&fs_info->discard_ctl.discardable_bytes)); in btrfs_discardable_bytes_show()
366 BTRFS_ATTR(discard, discardable_bytes, btrfs_discardable_bytes_show);
503 BTRFS_ATTR_PTR(discard, discardable_bytes),
Dctree.h473 atomic64_t discardable_bytes; member