Home
last modified time | relevance | path

Searched refs:discardable_bytes (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/fs/btrfs/
H A Ddiscard.c525 s64 discardable_bytes; in btrfs_discard_calc_delay() local
547 discardable_bytes = atomic64_read(&discard_ctl->discardable_bytes); in btrfs_discard_calc_delay()
548 if (discardable_bytes < 0) in btrfs_discard_calc_delay()
549 atomic64_add(-discardable_bytes, in btrfs_discard_calc_delay()
550 &discard_ctl->discardable_bytes); in btrfs_discard_calc_delay()
600 bytes_delta = ctl->discardable_bytes[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable()
601 ctl->discardable_bytes[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable()
603 atomic64_add(bytes_delta, &discard_ctl->discardable_bytes); in btrfs_discard_update_discardable()
604 ctl->discardable_bytes[BTRFS_STAT_PRE in btrfs_discard_update_discardable()
[all...]
H A Dfree-space-cache.h55 s64 discardable_bytes[BTRFS_STAT_NR_ENTRIES]; member
H A Dfree-space-cache.c828 ctl->discardable_bytes[BTRFS_STAT_CURR] += e->bytes; in __load_free_space_cache()
1648 ctl->discardable_bytes[BTRFS_STAT_CURR] -= info->bytes; in __unlink_free_space()
1672 ctl->discardable_bytes[BTRFS_STAT_CURR] += info->bytes; in link_free_space()
1745 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bytes; in __bitmap_clear_bits()
1783 ctl->discardable_bytes[BTRFS_STAT_CURR] += bytes; in bitmap_set_bits()
1968 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bitmap_info->bytes; in free_bitmap()
2070 ctl->discardable_bytes[BTRFS_STAT_CURR] += info->bytes; in add_bytes_to_bitmap()
2741 ctl->discardable_bytes[BTRFS_STAT_CURR] -= in __btrfs_return_cluster_to_free_space()
2751 ctl->discardable_bytes[BTRFS_STAT_CURR] += in __btrfs_return_cluster_to_free_space()
3053 ctl->discardable_bytes[BTRFS_STAT_CUR in btrfs_alloc_from_cluster()
[all...]
H A 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),
H A Dctree.h473 atomic64_t discardable_bytes; member
/kernel/linux/linux-6.6/fs/btrfs/
H A Ddiscard.c576 s64 discardable_bytes; in btrfs_discard_calc_delay() local
598 discardable_bytes = atomic64_read(&discard_ctl->discardable_bytes); in btrfs_discard_calc_delay()
599 if (discardable_bytes < 0) in btrfs_discard_calc_delay()
600 atomic64_add(-discardable_bytes, in btrfs_discard_calc_delay()
601 &discard_ctl->discardable_bytes); in btrfs_discard_calc_delay()
660 bytes_delta = ctl->discardable_bytes[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable()
661 ctl->discardable_bytes[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable()
663 atomic64_add(bytes_delta, &discard_ctl->discardable_bytes); in btrfs_discard_update_discardable()
664 ctl->discardable_bytes[BTRFS_STAT_PRE in btrfs_discard_update_discardable()
[all...]
H A Dfree-space-cache.h68 s64 discardable_bytes[BTRFS_STAT_NR_ENTRIES]; member
H A Dfree-space-cache.c1827 ctl->discardable_bytes[BTRFS_STAT_CURR] -= info->bytes; in unlink_free_space()
1850 ctl->discardable_bytes[BTRFS_STAT_CURR] += info->bytes; in link_free_space()
1905 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bytes; in bitmap_clear_bits()
1945 ctl->discardable_bytes[BTRFS_STAT_CURR] += bytes; in bitmap_set_bits()
2139 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bitmap_info->bytes; in free_bitmap()
2241 ctl->discardable_bytes[BTRFS_STAT_CURR] += info->bytes; in add_bytes_to_bitmap()
3004 ctl->discardable_bytes[BTRFS_STAT_CURR] -= in __btrfs_return_cluster_to_free_space()
3014 ctl->discardable_bytes[BTRFS_STAT_CURR] += in __btrfs_return_cluster_to_free_space()
3291 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bytes; in btrfs_alloc_from_cluster()
3848 ctl->discardable_bytes[BTRFS_STAT_CUR in reset_trimming_bitmap()
[all...]
H A Dfs.h325 atomic64_t discardable_bytes; member
H A Dsysfs.c456 atomic64_read(&fs_info->discard_ctl.discardable_bytes)); in btrfs_discardable_bytes_show()
458 BTRFS_ATTR(discard, discardable_bytes, btrfs_discardable_bytes_show);
601 BTRFS_ATTR_PTR(discard, discardable_bytes),

Completed in 26 milliseconds