Home
last modified time | relevance | path

Searched hist:"142 a80ffc3b537a9c45acd2444a42a77f147c602" (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/fs/jffs2/
H A Djffs2_private.h142a80ffc3b537a9c45acd2444a42a77f147c602 Thu Nov 13 16:49:36 UTC 2008 Ilya Yanok <yanok@emcraft.com> jffs2: cache data_crc results

As we moved data_crc() invocation from jffs2_1pass_build_lists() to
jffs2_1pass_read_inode() data_crc is going to be calculated on each
inode access. This patch adds caching of data_crc() results. There
is no significant improvement in speed (because of flash access
caching added in previous patch I think, crc in RAM is really fast)
but this patch impacts memory usage -- every b_node structure uses
12 bytes instead of 8.

Signed-off-by: Alexey Neyman <avn@emcraft.com>
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
H A Djffs2_1pass.c142a80ffc3b537a9c45acd2444a42a77f147c602 Thu Nov 13 16:49:36 UTC 2008 Ilya Yanok <yanok@emcraft.com> jffs2: cache data_crc results

As we moved data_crc() invocation from jffs2_1pass_build_lists() to
jffs2_1pass_read_inode() data_crc is going to be calculated on each
inode access. This patch adds caching of data_crc() results. There
is no significant improvement in speed (because of flash access
caching added in previous patch I think, crc in RAM is really fast)
but this patch impacts memory usage -- every b_node structure uses
12 bytes instead of 8.

Signed-off-by: Alexey Neyman <avn@emcraft.com>
Signed-off-by: Ilya Yanok <yanok@emcraft.com>