Lines Matching refs:avail
303 u64 avail; in calc_available_free_space() local
311 avail = atomic64_read(&fs_info->free_chunk_space); in calc_available_free_space()
320 avail = div_u64(avail, factor); in calc_available_free_space()
328 avail >>= 3; in calc_available_free_space()
330 avail >>= 1; in calc_available_free_space()
331 return avail; in calc_available_free_space()
338 u64 avail; in btrfs_can_overcommit() local
346 avail = calc_available_free_space(fs_info, space_info, flush); in btrfs_can_overcommit()
348 if (used + bytes < space_info->total_bytes + avail) in btrfs_can_overcommit()
757 u64 avail; in btrfs_calc_reclaim_metadata_size() local
763 avail = calc_available_free_space(fs_info, space_info, in btrfs_calc_reclaim_metadata_size()
773 if (space_info->total_bytes + avail < used) in btrfs_calc_reclaim_metadata_size()
774 to_reclaim += used - (space_info->total_bytes + avail); in btrfs_calc_reclaim_metadata_size()