diff options
author | Anton Staaf <robotboy@chromium.org> | 2011-06-13 11:40:40 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-28 15:36:32 +0200 |
commit | d961c188b205bb821c16d8d9b932456d2fb79211 (patch) | |
tree | 7933e1498e8b5f38b40a484151b2a314f804f751 /fs/reiserfs/reiserfs_private.h | |
parent | 9bac35f57bd41ae3f096dee1e747b90ca80fe044 (diff) | |
download | u-boot-imx-d961c188b205bb821c16d8d9b932456d2fb79211.zip u-boot-imx-d961c188b205bb821c16d8d9b932456d2fb79211.tar.gz u-boot-imx-d961c188b205bb821c16d8d9b932456d2fb79211.tar.bz2 |
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>
Diffstat (limited to 'fs/reiserfs/reiserfs_private.h')
0 files changed, 0 insertions, 0 deletions