tree 41c3f5d6c4d163735a60fc5a930d2feb313c17cd
parent 171650af9cd847964cf69b6bab9009631283293f
author Artem B. Bityuckiy <[EMAIL PROTECTED]> Thu, 17 Feb 2005 17:51:17 +0000
committer Thomas Gleixner <[EMAIL PROTECTED]> Mon, 23 May 2005 12:39:35 +0200
[JFFS2] Fix node lookup
Look the ref->next_phys field instead of ->next_in_ino to determine
if the block has more then one node.
Signed-off-by: Artem B. Bityuckiy <[EMAIL PROTECTED]>
Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
fs/jffs2/scan.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/jffs2/scan.c b/fs/jffs2/scan.c
--- a/fs/jffs2/scan.c
+++ b/fs/jffs2/scan.c
@@ -7,7 +7,7 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
- * $Id: scan.c,v 1.118 2005/02/09 09:23:53 pavlov Exp $
+ * $Id: scan.c,v 1.119 2005/02/17 17:51:13 dedekind Exp $
*
*/
#include <linux/kernel.h>
@@ -433,7 +433,7 @@ scan_more:
/* If we're only checking the beginning of a block with
a cleanmarker,
bail now */
if (buf_ofs == jeb->offset && jeb->used_size ==
PAD(c->cleanmarker_size) &&
- c->cleanmarker_size && !jeb->dirty_size &&
!jeb->first_node->next_in_ino) {
+ c->cleanmarker_size && !jeb->dirty_size &&
!jeb->first_node->next_phys) {
D1(printk(KERN_DEBUG "%d bytes at start of
block seems clean... assuming all clean\n", EMPTY_SCAN_SIZE(c->sector_size)));
return BLK_STATE_CLEANMARKER;
}
@@ -629,7 +629,7 @@ scan_more:
}
if ((jeb->used_size + jeb->unchecked_size) == PAD(c->cleanmarker_size)
&& !jeb->dirty_size
- && (!jeb->first_node || !jeb->first_node->next_in_ino) )
+ && (!jeb->first_node || !jeb->first_node->next_phys) )
return BLK_STATE_CLEANMARKER;
/* move blocks with max 4 byte dirty space to cleanlist */
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html