usb: gadget: fastboot: call discard_range for sparse files as well
We can save some time by explicitly telling the block layer that a range
is unused before overwriting it. This brought time my sample write
from 445s to 376s.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9552f51 commit 0e8d4c71ab877e1498ab1f0f63be54430e24945a
@Ahmad Fatoum Ahmad Fatoum authored on 27 Feb 2020
Sascha Hauer committed on 3 Mar 2020
Showing 1 changed file
View
drivers/usb/gadget/f_fastboot.c