/* Obtain an accurate fraction of the BDI's portion.  */
static void bdi_writeout_fraction(struct backing_dev_info *bdi, long *numerator, long *denominator)
/* Obtain an accurate fraction of the BDI's portion.  */
static void bdi_writeout_fraction(struct backing_dev_info *bdi, long *numerator, long *denominator)
{
	if (bdi_cap_writeback_dirty(bdi)) {
		prop_fraction_percpu(&vm_completions, &bdi->completions,
				numerator, denominator);
	} else {
		*numerator = 0;
		*denominator = 1;
	}
}