Home
last modified time | relevance | path

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

/fs/btrfs/
Ddiscard.c567 s64 discardable_bytes; in btrfs_discard_calc_delay() local
588 discardable_bytes = atomic64_read(&discard_ctl->discardable_bytes); in btrfs_discard_calc_delay()
589 if (discardable_bytes < 0) in btrfs_discard_calc_delay()
590 atomic64_add(-discardable_bytes, in btrfs_discard_calc_delay()
591 &discard_ctl->discardable_bytes); in btrfs_discard_calc_delay()
643 bytes_delta = ctl->discardable_bytes[BTRFS_STAT_CURR] - in btrfs_discard_update_discardable()
644 ctl->discardable_bytes[BTRFS_STAT_PREV]; in btrfs_discard_update_discardable()
646 atomic64_add(bytes_delta, &discard_ctl->discardable_bytes); in btrfs_discard_update_discardable()
647 ctl->discardable_bytes[BTRFS_STAT_PREV] = in btrfs_discard_update_discardable()
648 ctl->discardable_bytes[BTRFS_STAT_CURR]; in btrfs_discard_update_discardable()
[all …]
Dfree-space-cache.c1718 ctl->discardable_bytes[BTRFS_STAT_CURR] -= info->bytes; in __unlink_free_space()
1742 ctl->discardable_bytes[BTRFS_STAT_CURR] += info->bytes; in link_free_space()
1777 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bytes; in __bitmap_clear_bits()
1815 ctl->discardable_bytes[BTRFS_STAT_CURR] += bytes; in bitmap_set_bits()
1976 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bitmap_info->bytes; in free_bitmap()
2078 ctl->discardable_bytes[BTRFS_STAT_CURR] += info->bytes; in add_bytes_to_bitmap()
2844 ctl->discardable_bytes[BTRFS_STAT_CURR] -= in __btrfs_return_cluster_to_free_space()
2854 ctl->discardable_bytes[BTRFS_STAT_CURR] += in __btrfs_return_cluster_to_free_space()
3160 ctl->discardable_bytes[BTRFS_STAT_CURR] -= bytes; in btrfs_alloc_from_cluster()
3702 ctl->discardable_bytes[BTRFS_STAT_CURR] += entry->bytes; in reset_trimming_bitmap()
[all …]
Dfree-space-cache.h55 s64 discardable_bytes[BTRFS_STAT_NR_ENTRIES]; member
Dsysfs.c444 atomic64_read(&fs_info->discard_ctl.discardable_bytes)); in btrfs_discardable_bytes_show()
446 BTRFS_ATTR(discard, discardable_bytes, btrfs_discardable_bytes_show);
589 BTRFS_ATTR_PTR(discard, discardable_bytes),
Dctree.h511 atomic64_t discardable_bytes; member