diff options
author | Ilya Yanok <yanok@emcraft.com> | 2008-11-13 19:49:34 +0300 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-12-09 23:39:58 +0100 |
commit | 70741004dc28946cd82c7af6789c4ddb3fc94526 (patch) | |
tree | 199ba539db02063b1409a56d81e75381650399b5 /fs/jffs2/jffs2_private.h | |
parent | 8a36d31f72411144ac0412ee7e1880e801acd754 (diff) | |
download | u-boot-imx-70741004dc28946cd82c7af6789c4ddb3fc94526.zip u-boot-imx-70741004dc28946cd82c7af6789c4ddb3fc94526.tar.gz u-boot-imx-70741004dc28946cd82c7af6789c4ddb3fc94526.tar.bz2 |
jffs2: add buffer to cache flash accesses
With this patch JFFS2 code allocates memory buffer of max_totlen size
(size of the largest node, calculated during scan time) and uses it to
store entire node. Speeds up loading. If malloc fails we use old ways
to do things.
Signed-off-by: Alexey Neyman <avn@emcraft.com>
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Diffstat (limited to 'fs/jffs2/jffs2_private.h')
-rw-r--r-- | fs/jffs2/jffs2_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/jffs2_private.h b/fs/jffs2/jffs2_private.h index 9745762..3633dea 100644 --- a/fs/jffs2/jffs2_private.h +++ b/fs/jffs2/jffs2_private.h @@ -24,7 +24,7 @@ struct b_list { struct b_lists { struct b_list dir; struct b_list frag; - + void *readbuf; }; struct b_compr_info { |