summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/jffs2/src/write.c
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2016-02-01 12:00:25 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-16 07:22:13 +0200
commit0f5030d5de1650a20f371382ffc34999300dd712 (patch)
tree16a9a0b70e09b98c40b60e45c6057d93a55c26ca /cpukit/libfs/src/jffs2/src/write.c
parentFix directory hardlinks from deleted directories (diff)
downloadrtems-0f5030d5de1650a20f371382ffc34999300dd712.tar.bz2
jffs2: Improve post-mount CRC scan efficiency
We need to finish doing the CRC checks before we can allow writes to happen, and we currently process the inodes in order. This means a call to jffs2_get_ino_cache() for each possible inode# up to c->highest_ino. There may be a lot of lookups which fail, if the inode# space is used sparsely. And the inode# space is *often* used sparsely, if a file system contains a lot of stuff that was put there in the original image, followed by lots of creation and deletion of new files. Instead of processing them numerically with a lookup each time, just walk the hash buckets instead. [fix locking typo reported by Dan Carpenter] Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions