]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fat: replace LINEAR_PREFETCH_SIZE with PREFETCH_BLOCKS
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Fri, 19 Aug 2011 09:37:46 +0000 (09:37 +0000)
committerWolfgang Denk <wd@denx.de>
Sat, 1 Oct 2011 19:52:19 +0000 (21:52 +0200)
commit025421eab453fd41a3cc14a0fc48115b0dc4c287
treeedea3f18319116fc6320b90617844a40f35ce842
parent40e219165bcdf450cc69976fa129f2ef9889973a
fat: replace LINEAR_PREFETCH_SIZE with PREFETCH_BLOCKS

Currently in do_fat_read() when reading FAT sectors, we have to divide down
LINEAR_PREFETCH_SIZE by the sector size, whereas it's defined as 2 sectors
worth of bytes. In order to avoid redundant multiplication/division, introduce
#define PREFETCH_BLOCKS instead of #define LINEAR_PREFETCH_SIZE.

Signed-off-by: Sergei Shtylyov <sshtylyov@mvista.com>
fs/fat/fat.c
include/fat.h