Re: jffs2: -ENOSPC when truncating file?!

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alexander Belyakov <abelyako@...>
Cc: kernel list <linux-kernel@...>, <linux-mtd@...>, David Woodhouse <dwmw2@...>, Jörn <joern@...>
Date: Monday, March 3, 2008 - 8:15 am

Hi!


Patch is here (I whitespace-damaged it, sorry], and I've seen no
discussion.. should it just be applied?
								Pavel

diff -uNr a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
--- a/fs/jffs2/wbuf.c	2007-05-25 01:22:47.000000000 +0400
+++ b/fs/jffs2/wbuf.c	2007-06-20 18:45:09.000000000 +0400
@@ -117,7 +117,7 @@

 		D1(printk(KERN_DEBUG "Removing eraseblock at 0x%08x
from erasable_pending_wbuf_list...\n", jeb->offset));
 		list_del(this);
-		if ((jiffies + (n++)) & 127) {
+		if (((jiffies + (n++)) & 127) &&
!list_empty(&c->erasable_list)) {
 			/* Most of the time, we just erase it immediately. Otherwise we
 			   spend ages scanning it on mount, etc. */
 			D1(printk(KERN_DEBUG "...and adding to
erase_pending_list\n"));



-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Sat Feb 23, 7:57 pm)
Re: jffs2: -ENOSPC when truncating file?!, Alexander Belyakov, (Mon Feb 25, 3:48 am)
Re: jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Mon Mar 3, 8:15 am)
Re: jffs2: -ENOSPC when truncating file?!, Alexander Belyakov, (Mon Mar 3, 12:09 pm)
Re: jffs2: -ENOSPC when truncating file?!, Jörn, (Mon Mar 3, 11:10 am)
Re: jffs2: -ENOSPC when truncating file?!, David Woodhouse, (Sat Feb 23, 8:36 pm)
Re: jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Sun Feb 24, 3:24 am)
Re: jffs2: -ENOSPC when truncating file?!, Jamie Lokier, (Sun Feb 24, 12:11 pm)
Re: jffs2: -ENOSPC when truncating file?!, Jörn, (Sun Feb 24, 2:57 am)
Re: jffs2: -ENOSPC when truncating file?!, David Woodhouse, (Sun Feb 24, 6:57 am)
Re: jffs2: -ENOSPC when truncating file?!, Pavel Machek, (Sun Feb 24, 3:02 pm)
Re: jffs2: -ENOSPC when truncating file?!, Jörn, (Sun Feb 24, 7:08 am)