- 22 May, 2006 5 commits
-
-
David Woodhouse authored
We don't need the upper layers to deal with the physical offset. It's _always_ c->nextblock->offset + c->sector_size - c->nextblock->free_size so we might as well just let the actual write functions deal with that. Signed-off-by:
David Woodhouse <dwmw2@infradead.org>
-
Joern Engel authored
In 2002, STMicro started producing NOR flashes with internal ECC protection for small blocks (8 or 16 bytes). Support for those flashes was added by me. In 2005, Intel Sibley flashes copied this strategy and Nico added support for those. Merge the code for both. Signed-off-by:
Joern Engel <joern@wh.fh-wedel.de>
-
Joern Engel authored
At least two flashes exists that have the concept of a minimum write unit, similar to NAND pages, but no other NAND characteristics. Therefore, rename the minimum write unit to "writesize" for all flashes, including NAND. Signed-off-by:
Joern Engel <joern@wh.fh-wedel.de>
-
David Woodhouse authored
Let's avoid the potential for forgetting to set ref->next_in_ino, by doing it within jffs2_link_node_ref() instead. This highlights the ugliness of what we're currently doing with xattr_datum and xattr_ref structures -- we should find a nicer way of dealing with that. Signed-off-by:
David Woodhouse <dwmw2@infradead.org>
-
David Woodhouse authored
Signed-off-by:
David Woodhouse <dwmw2@infradead.org>
-
- 21 May, 2006 1 commit
-
-
David Woodhouse authored
Next step in ongoing campaign to file a struct jffs2_raw_node_ref for every piece of dirty space in the system, so that __totlen can be killed off.... Signed-off-by:
David Woodhouse <dwmw2@infradead.org>
-
- 20 May, 2006 1 commit
-
-
David Woodhouse authored
If __totlen is going away, we need to pass the length in separately. Also stop callers from needlessly setting ref->next_phys to NULL, since that's done for them... and since that'll also be going away soon. Signed-off-by:
David Woodhouse <dwmw2@infradead.org>
-
- 07 Nov, 2005 2 commits
-
-
Jesper Juhl authored
This is the fs/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in fs/. Signed-off-by:
Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
Thomas Gleixner authored
Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
- 06 Nov, 2005 7 commits
-
-
Artem B. Bityutskiy authored
- assume wbuf may be of size which is not power of 2 - don't make strange assumption about not padding wbuf for DataFlash - use wbuf = DataFlash page and eraseblock >= 8 Dataflash pages From: Peter Menzebach <pm-mtd@mw-itcon.de> Acked-by:
Artem B. Bityutskiy <dedekind@infradead.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Artem B. Bityutskiy authored
Simplify the debugging code further. Update the TODO list Signed-off-by:
Artem B. Bityutskiy <dedekind@infradead.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Ferenc Havasi authored
The goal of summary is to speed up the mount time. Erase block summary (EBS) stores summary information at the end of every (closed) erase block. It is no longer necessary to scan all nodes separetly (and read all pages of them) just read this "small" summary, where every information is stored which is needed at mount time. This summary information is stored in a JFFS2_FEATURE_RWCOMPAT_DELETE. During the mount process if there is no summary info the orignal scan process will be executed. EBS works with NAND and NOR flashes, too. There is a user space tool called sumtool to generate this summary information for a JFFS2 image. Signed-off-by:
Ferenc Havasi <havasi@inf.u-szeged.hu> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Nicolas Pitre authored
Intels Sibley flash needs JFFS2 write buffer functionality Signed-off-by:
Nicolas Pitre <nico@cam.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Artem B. Bityutskiy authored
Various simplifiactions. printk format corrections. Convert more code to use the new debug functions. Signed-off-by:
Artem B. Bityutskiy <dedekind@infradead.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Artem B. Bityutskiy authored
If debugging is disabled, define debugging functions as empty macros, instead of using Dx() explicitly. Signed-off-by:
Artem B. Bityutskiy <dedekind@infradead.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Artem B. Bityutskiy authored
Move debug functions into a seperate source file Signed-off-by:
Artem B. Bityutskiy <dedekind@infradead.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
- 30 Oct, 2005 1 commit
-
-
Tim Schmielau authored
I recently picked up my older work to remove unnecessary #includes of sched.h, starting from a patch by Dave Jones to not include sched.h from module.h. This reduces the number of indirect includes of sched.h by ~300. Another ~400 pointless direct includes can be removed after this disentangling (patch to follow later). However, quite a few indirect includes need to be fixed up for this. In order to feed the patches through -mm with as little disturbance as possible, I've split out the fixes I accumulated up to now (complete for i386 and x86_64, more archs to follow later) and post them before the real patch. This way this large part of the patch is kept simple with only adding #includes, and all hunks are independent of each other. So if any hunk rejects or gets in the way of other patches, just drop it. My scripts will pick it up again in the next round. Signed-off-by:
Tim Schmielau <tim@physik3.uni-rostock.de> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 23 May, 2005 9 commits
-
-
Artem B. Bityuckiy authored
Signed-off-by:
Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Artem B. Bityuckiy authored
Use the corresponding function to mark Superblock dirty instead of doing it directly. Signed-off-by:
Artem B. Bityuckiy <dedekind@infradead.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Andrew Victor authored
This patch replaces the current CONFIG_JFFS2_FS_NAND, CONFIG_JFFS2_FS_NOR_ECC and CONFIG_JFFS2_FS_DATAFLASH with a single configuration option - CONFIG_JFFS2_FS_WRITEBUFFER. The only functional change of this patch is that the slower div/mod calculations for SECTOR_ADDR(), PAGE_DIV() and PAGE_MOD() are now always used when CONFIG_JFFS2_FS_WRITEBUFFER is enabled. Signed-off-by:
Andrew Victor <andrew@sanpeople.com> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Andrew Victor authored
For Dataflash, can_mark_obsolete = false and the NAND write buffering code (wbuf.c) is used. Since the DataFlash chip will automatically erase pages when writing, the cleanmarkers are not needed - so cleanmarker_oob = false and cleanmarker_size = 0 DataFlash page-sizes are not a power of two (they're multiples of 528 bytes). The SECTOR_ADDR macro (added in the previous core patch) is replaced with a (slower) div/mod version if CONFIG_JFFS2_FS_DATAFLASH is selected. Signed-off-by:
Andrew Victor <andrew@sanpeople.com> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Andrew Victor authored
DataFlash page-sizes are not a power of two (they're multiples of 528 bytes). There are a few places in JFFS2 code where sector_size is used as a bitmask. A new macro (SECTOR_ADDR) was defined to calculate these sector addresses. For non-DataFlash devices, the original (faster) bitmask operation is still used. In scan.c, the EMPTY_SCAN_SIZE was a constant of 1024. Since this could be larger than the sector size of the DataFlash, this is now basically set to MIN(sector_size, 1024). Addition of a jffs2_is_writebuffered() macro. Signed-off-by:
Andrew Victor <andrew@sanpeople.com> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Estelle Hammache authored
Prevent deadlock when checking erased block for space allocation during wbuf recovery. Signed-off-by:
Estelle Hammache <estelle.hammache@st.com> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
David Woodhouse authored
make NAND code work on NOR flash again Signed-off-by:
David Woodhouse <dwmw2@infradead.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Estelle Hammache authored
Code beautification and block filing correction for optimization. Signed-off-by:
Estelle Hammache <estelle.hammache@st.com> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
Estelle Hammache authored
- block refiling when writing directly to flash a buffer which is bigger than wbuf - retry cases for flushing wbuf Signed-off-by:
Estelle Hammache <estelle.hammache@st.com> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
-
- 16 Apr, 2005 1 commit
-
-
Linus Torvalds authored
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
-