Patchwork UBIFS failure & stable page writes

login
register
mail settings
Submitter Mats Kärrman
Date June 15, 2013, 10:25 p.m.
Message ID <ED3E0BCACD909541BA94A34C4A164D4C4FC8FD57@post.tritech.se>
Download mbox | patch
Permalink /patch/251643/
State New
Headers show

Comments

Mats Kärrman - June 15, 2013, 10:25 p.m.
Those patches are not in my source.
// Mats

Patch

diff -purN a/fs/ubifs/orphan.c b/fs/ubifs/orphan.c
--- a/fs/ubifs/orphan.c 2013-06-13 12:19:58.490931170 +0200
+++ b/fs/ubifs/orphan.c 2013-06-13 12:17:13.014931462 +0200
@@ -300,6 +300,9 @@  static int write_orph_node(struct ubifs_
        for (i = 0; i < cnt; i++) {
                orphan = cnext;
                orph->inos[i] = cpu_to_le64(orphan->inum);
+               if (orph->inos[i] < UBIFS_FIRST_INO) {
+                       printk(KERN_ERR "ERROR: Wrong ino in orphan list[%lu]: %lu\n", (unsigned long)i, (unsigned long)orph->inos[i]);
+               }
                cnext = orphan->cnext;
                orphan->cnext = NULL;
        }