]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Optimize case for exactly one erase-group budget
authorDavid Jander <david@protonic.nl>
Tue, 23 Jun 2015 09:43:52 +0000 (11:43 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Aug 2015 09:32:39 +0000 (11:32 +0200)
commit3e0c92783b5cf940db32b1ed5cd6e5386178b704
treeb089ff56dd3bc56a3499bcd3277c72d9f563ccd9
parent8c430bc2323a3f34090eef7d3bf4f6f74687455c
mmc: core: Optimize case for exactly one erase-group budget

In the (not so unlikely) case that the mmc controller timeout budget is
enough for exactly one erase-group, the simplification of allowing one
sector has an enormous performance penalty. We optimize this special case
by introducing a flag that prohibits erase-group boundary crossing, so
that we can allow trimming more than one sector at a time.

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
include/linux/mmc/card.h