summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-05-22 12:24:16 -0400
committerTom Rini <trini@konsulko.com>2018-06-07 09:12:26 -0400
commit46960ad6d09b948b5df5236029bc072f9800aeb3 (patch)
tree84612e85946eb1a5f7f5b9a127cd717988f0feaa /drivers/block
parent66a00be2878dc0f972a6e100e91af5942ef8f736 (diff)
block: Have BLOCK_CACHE default to y in some cases
When dealing with filesystems that come from block devices we can get a noticeable performance gain in some use cases from having the block cache enabled. The code paths are valid in other cases when we have BLK set and may provide wins in raw reads in some use cases, so have this be default when BLK is enabled. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 15fd1bcb2b..0792373cfc 100644
--- a/drivers/block/Kconfig
+++ b/drivers/block/Kconfig
@@ -29,7 +29,8 @@ config SPL_BLK
config BLOCK_CACHE
bool "Use block device cache"
- default n
+ depends on BLK
+ default y
help
This option enables a disk-block cache for all block devices.
This is most useful when accessing filesystems under U-Boot since