]> git.baikalelectronics.ru Git - uboot.git/commit
blk: Increase cache element size
authorMarek Vasut <marex@denx.de>
Wed, 8 Aug 2018 11:20:29 +0000 (13:20 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 15 Jan 2019 20:28:53 +0000 (15:28 -0500)
commit537f0f18aa933ab8c945f0d1eb11407262d92bcd
tree8b6aa84c8825d20e7edeeb97e10b34682989fb39
parent5d8019f8ecd9b7f3e4ce042589f330ae4c6268dc
blk: Increase cache element size

Cache up to 4 kiB entries. 4 kiB is the default block size on ext4, yet
the underlying block layer devices usually report support for 512B . In
most cases, the 512B support is emulated (ie. SD cards, SSDs, USB sticks
etc.) and the real block size of those devices is much bigger.

To avoid performance degradation with such devices and FS setup, bump
the maximum cache entry size to 4 kiB.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/block/blkcache.c