u-boot-brain/drivers/block
Eric Nelson e40cf34a29 drivers: block: add block device cache
Add a block device cache to speed up repeated reads of block devices by
various filesystems.

This small amount of cache can dramatically speed up filesystem
operations by skipping repeated reads of common areas of a block
device (typically directory structures).

This has shown to have some benefit on FAT filesystem operations of
loading a kernel and RAM disk, but more dramatic benefits on ext4
filesystems when the kernel and/or RAM disk are spread across
multiple extent header structures as described in commit fc0fc50.

The cache is implemented through a minimal list (block_cache) maintained
in most-recently-used order and count of the current number of entries
(cache_count). It uses a maximum block count setting to prevent copies
of large block reads and an upper bound on the number of cached areas.

The maximum number of entries in the cache defaults to 32 and the maximum
number of blocks per cache entry has a default of 2, which has shown to
produce the best results on testing of ext4 and FAT filesystems.

The 'blkcache' command (enabled through CONFIG_CMD_BLOCK_CACHE) allows
changing these values and can be used to tune for a particular filesystem
layout.

Signed-off-by: Eric Nelson <eric@nelint.com>
2016-04-01 17:18:27 -04:00
..
ahci.c dm: ahci: Convert to use new DM PCI API 2016-01-12 10:19:09 -07:00
blk-uclass.c drivers: block: add block device cache 2016-04-01 17:18:27 -04:00
blkcache.c drivers: block: add block device cache 2016-04-01 17:18:27 -04:00
disk-uclass.c ahci: Add a disk-controller uclass 2016-01-24 12:09:39 +08:00
dwc_ahsata.c dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
dwc_ahsata.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_sata.c Fix typo: commmand -> command. 2015-12-05 18:22:21 -05:00
fsl_sata.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftide020.c Merge branch 'master' of git://git.denx.de/u-boot-nds32 2013-07-25 08:51:51 -04:00
ftide020.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Kconfig drivers: block: add block device cache 2016-04-01 17:18:27 -04:00
libata.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Makefile drivers: block: add block device cache 2016-04-01 17:18:27 -04:00
mvsata_ide.c Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mxc_ata.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pata_bfin.c dm: part: Rename some partition functions 2016-03-14 15:34:50 -06:00
pata_bfin.h blackfin: include <linux/compiler.h> rather than define __iomem 2014-12-08 09:35:46 -05:00
sandbox.c dm: sandbox: Drop the pre-DM host implementation 2016-03-17 21:27:39 -06:00
sata_dwc.c Fix GCC format-security errors and convert sprintfs. 2016-01-14 22:11:34 -05:00
sata_dwc.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sata_mv.c sata: Add SATA driver with DMA support for Marvell Kirkwood and Armada XP 2016-01-14 14:08:59 +01:00
sata_sil.c Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2014-11-24 12:02:12 -05:00
sata_sil.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sata_sil3114.c sata: implement reset_sata for dwc_ahsata 2014-11-24 11:59:59 +01:00
sata_sil3114.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sil680.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sym53c8xx.c Fix spelling of "transferred". 2016-03-22 12:16:16 -04:00
systemace.c dm: block: Rename device number member dev to devnum 2016-03-14 15:34:50 -06:00