Home
last modified time | relevance | path

Searched refs:delalloc_bytes (Results 1 – 8 of 8) sorted by relevance

/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dspace-info.c492 u64 delalloc_bytes; in shrink_delalloc() local
515 delalloc_bytes = percpu_counter_sum_positive( in shrink_delalloc()
516 &fs_info->delalloc_bytes); in shrink_delalloc()
518 if (delalloc_bytes == 0 && dio_bytes == 0) { in shrink_delalloc()
531 if (dio_bytes > delalloc_bytes) in shrink_delalloc()
535 while ((delalloc_bytes || dio_bytes) && loops < 3) { in shrink_delalloc()
536 u64 nr_pages = min(delalloc_bytes, to_reclaim) >> PAGE_SHIFT; in shrink_delalloc()
557 delalloc_bytes = percpu_counter_sum_positive( in shrink_delalloc()
558 &fs_info->delalloc_bytes); in shrink_delalloc()
H A Dbtrfs_inode.h136 u64 delalloc_bytes; member
H A Dblock-group.h67 u64 delalloc_bytes; member
H A Dinode.c2014 percpu_counter_add_batch(&fs_info->delalloc_bytes, len, in btrfs_set_delalloc_extent()
2017 BTRFS_I(inode)->delalloc_bytes += len; in btrfs_set_delalloc_extent()
2084 percpu_counter_add_batch(&fs_info->delalloc_bytes, -len, in btrfs_clear_delalloc_extent()
2087 inode->delalloc_bytes -= len; in btrfs_clear_delalloc_extent()
2088 if (do_list && inode->delalloc_bytes == 0 && in btrfs_clear_delalloc_extent()
2592 cache->delalloc_bytes -= len; in btrfs_release_delalloc_bytes()
8688 ei->delalloc_bytes = 0; in btrfs_alloc_inode()
8758 WARN_ON(inode->delalloc_bytes); in btrfs_destroy_inode()
8868 u64 delalloc_bytes; in btrfs_getattr() local
8894 delalloc_bytes = BTRFS_I(inode)->new_delalloc_bytes; in btrfs_getattr()
[all …]
H A Ddisk-io.c1497 percpu_counter_destroy(&fs_info->delalloc_bytes); in btrfs_free_fs_info()
2848 ret = percpu_counter_init(&fs_info->delalloc_bytes, 0, GFP_KERNEL); in init_mount_fs_info()
4182 if (percpu_counter_sum(&fs_info->delalloc_bytes)) { in close_ctree()
4184 percpu_counter_sum(&fs_info->delalloc_bytes)); in close_ctree()
H A Dblock-group.c2990 cache->delalloc_bytes += num_bytes; in btrfs_add_reserved_bytes()
3029 cache->delalloc_bytes -= num_bytes; in btrfs_free_reserved_bytes()
H A Dctree.h800 struct percpu_counter delalloc_bytes; member
H A Dfree-space-cache.c1279 if (block_group->delalloc_bytes) { in __btrfs_write_out_cache()