]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
jffs2: add buffer to cache flash accesses
authorIlya Yanok <yanok@emcraft.com>
Thu, 13 Nov 2008 16:49:34 +0000 (19:49 +0300)
committerWolfgang Denk <wd@denx.de>
Tue, 9 Dec 2008 22:39:58 +0000 (23:39 +0100)
commit70741004dc28946cd82c7af6789c4ddb3fc94526
tree199ba539db02063b1409a56d81e75381650399b5
parent8a36d31f72411144ac0412ee7e1880e801acd754
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>
fs/jffs2/jffs2_1pass.c
fs/jffs2/jffs2_private.h