block: Have BLOCK_CACHE default to y in some cases
authorTom Rini <trini@konsulko.com>
Tue, 22 May 2018 16:24:16 +0000 (12:24 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 7 Jun 2018 13:12:26 +0000 (09:12 -0400)
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>
drivers/block/Kconfig

index 15fd1bc..0792373 100644 (file)
@@ -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