summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/jffs2_private.h
diff options
context:
space:
mode:
authorIlya Yanok <yanok@emcraft.com>2008-11-13 19:49:34 +0300
committerWolfgang Denk <wd@denx.de>2008-12-09 23:39:58 +0100
commit70741004dc28946cd82c7af6789c4ddb3fc94526 (patch)
tree199ba539db02063b1409a56d81e75381650399b5 /fs/jffs2/jffs2_private.h
parent8a36d31f72411144ac0412ee7e1880e801acd754 (diff)
downloadtalos-obmc-uboot-70741004dc28946cd82c7af6789c4ddb3fc94526.tar.gz
talos-obmc-uboot-70741004dc28946cd82c7af6789c4ddb3fc94526.zip
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/jffs2_private.h b/fs/jffs2/jffs2_private.h
index 97457627c1..3633deaaf8 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 {
OpenPOWER on IntegriCloud