]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ext2: Simplify partial sector access logic
authorAnton Staaf <robotboy@chromium.org>
Mon, 13 Jun 2011 11:40:40 +0000 (11:40 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 28 Jul 2011 13:36:32 +0000 (15:36 +0200)
commitd961c188b205bb821c16d8d9b932456d2fb79211
tree7933e1498e8b5f38b40a484151b2a314f804f751
parent9bac35f57bd41ae3f096dee1e747b90ca80fe044
ext2: Simplify partial sector access logic

Previously reading or writing zero full sectors (reading the end of
one sector and the beginning of the next for example) was special
cased and involved stack allocating a second sector buffer.  This
change uses the same code path for this case as well as when there
are a non-zero number of full sectors to access.  The result is
easier to read and reduces the maximum stack used.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Andy Fleming <afleming@freescale.com>
Acked-by: Detlev Zundel <dzu@denx.de>
fs/ext2/dev.c