summaryrefslogtreecommitdiff
path: root/yaffs_guts.c (follow)
AgeCommit message (Collapse)Author
2011-08-15Mods for Linux 3.0 and fix a typoCharles Manning
Roll in NCB's patch and some other changes for Linux 3.0. Also fix a dumb type retired_writes->retried_writes Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-04-28Merge branch 'block-summary'Charles Manning
Conflicts: yaffs_vfs_multi.c Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-03-31yaffs: More mainlining cleanupCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-03-31yaffs: Tweaks to summary codeCharles Manning
Trying some different ideas for handling free space cleaner. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-03-29yaffs: Add first cut of block summary codeCharles Manning
Some issues still need to be checked. In particular: * Is free space handling correct? * Is gc doing The Right Thing? Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-03-07yaffs: Remove debugging argument from temp buffer handlingCharles Manning
No longer track the line number used for allocation. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-02-25yaffs: Remove tags validity checking code.Charles Manning
It was only really useful during development and no longer serves any purpose. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-02-04yaffs: Change all hex values to lower caseCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-02-03yaffs: Fix directory unlinking in yaffs1 modeCharles Manning
Treat both yaffs2 and yaffs1 paths the same. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-02-01yaffs: Update year to 2011 in copyrights etc.Charles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-02-01yaffs: Clean up as per Ryan's commentsCharles Manning
Clean up a whole lot of code issues raised by Ryan. Some further reformatting etc to be mor kernel friendly. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-01-26yaffs: Replace YBUG() with BUG()Charles Manning
Also clean a few other things in yportenv_xxxx.h Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-01-20yaffs: Fix NULL check sequence.Charles Manning
Potential NULL dreference before check. Picked up by Coverity check. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-01-14yaffs: Clean up some Coverity checksCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-01-13yaffs: Reformatting to be kernel friendly.Charles Manning
Passes checkpatch.pl Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2011-01-10yaffs: Sort out issues raised by CoverityCharles Manning
Coverity checks raised some issues, particularly with NULL checks. Fix them. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-12-10yaffs: More cleanup of tracing, inlines and general formattingCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-12-10yaffs Change tracing to yaffs_traceCharles Manning
Make the tracing a whole lot easier on the eye. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-12-07yaffs: Remove a whole lot of function wrappers and forward declarationsCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-24yaffs direct: Fix error for attempting to rename over a non-empty directoryCharles Manning
Now produces -ENOTEMPTY. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-24yaffs direct: Fix some more error handling and directory name handlingCharles Manning
All Timothy's tests passing. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-09yaffs: Clean up some tracing.Charles Manning
Make some checkpt messages conditional. Fix up trace table screwed up by lindent. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-09yaffs: Remove SHORT_NAMES_IN_RAM and WIDE_TNODE_DISABLE configsCharles Manning
These have been removed from Linux as their use is discouraged except for debugging purposes. The logic has also changed for SHORT_NAMES_IN_RAM. This is now negative logic. Set CONFIG_YAFFS_NO_SHORT_NAMES to **disable** short names. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-08yaffs Clean up conditional bracingCharles Manning
If a conditional has braces then all paths have braces even if they only have one statement. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-03yaffs: Redo LindentCharles Manning
Only applies to Linux files. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-03yaffs: More clean upCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-03yaffs: More clean up.Charles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-02yaffs: More clean upCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-02yaffs: More clean upCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-02yaffs: More clean upCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-02yaffs: Change __uxx types to uxxCharles Manning
__u32 -> u32 and such. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-11-02yaffs: More name changesCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-10-27yaffs Further name changes and file reorganisationCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-10-22yaffs Normalise copyright headersTimothy Manning
Some of the headers were not the right format. Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
2010-10-07yaffs Make more symbol changesCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-10-07yaffs More symbol changesCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-10-07yaffs First round of name changesCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-09-25yaffs Clean up some codeCharles Manning
Clean up some code. eg remove some conditional compilation and obsolete code. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-09-25yaffs Remove obsolete list debugging codeCharles Manning
This code does not work any more so may as well delete it. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-09-09yaffs Compilation clean upsCharles Manning
Tighten compilation flags and clean up. More to follow... Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-09-09yaffs: Cache object xattrib state.Charles Manning
We cache whether or not an object has xattributes. This is done to get around the problem of the Linux VFS trying to check security capabilities on every write. Assuming that most files don't have security attributes, this code will save on a huge amount of reads and make writing faster. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-08-19yaffs Tweak gc parametersCharles Manning
This will reduce unnecessary garbace collection by limiting in-thread garbage collection to when the garbage > 3/4 of the free space. This should push more gc into background and make the write path faster. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-08-18yaffs Add gc block counterCharles Manning
Extra stats for counting how many blocks get selected for gc. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-08-16yaffs Clean up some yaffs1 related comments and messagesCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-08-10yaffs: Batter read-only support handlingCharles Manning
Check read only flags in both the mount flags and mtd flags. If the mount is read only then don't do some clean ups or start the background gc thread. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-08-10yaffs Fix yaffs1 soft delete issueCharles Manning
In some corner cases soft deletion could cause NAND to leak and show up in lost and found. This only impacts yaffs1 mode. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-08-04yaffs: Fix AutoUnicode handlingCharles Manning
Call the correct function to process auto unicode. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-07-22yaffs Clean up WinCE compilation issuesCharles Manning
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-07-21yaffs Refactor yaffs direct device list management, add nand abstraction, ↵Charles Manning
divide up test code This all makes for a far cleaner layout of test code. The new yaffs direct list management allows partitions to be added synamically rather than statically. This is better for OSs that install partitions at runtime (eg. WInCE). The nand abstraction makes it tidier to add a new nand driver to yaffs direct and test code. The test code has been repartitioned to make porting and file management cleaner. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
2010-07-02yaffs Refactorisation first phaseCharles Manning
Partitoning code. More to happen. Signed-off-by: Charles Manning <cdhmanning@gmail.com>