]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/ubifs/orphan.c
UBIFS: introduce helper functions for debugging checks and tests
[mirror_ubuntu-artful-kernel.git] / fs / ubifs / orphan.c
index bd644bf587a8a7afbef10b83fdef31f4cb71fdf3..c542c73cfa3c5e83210badd78c8c1acdc719ab28 100644 (file)
@@ -674,7 +674,7 @@ static int kill_orphans(struct ubifs_info *c)
                if (IS_ERR(sleb)) {
                        if (PTR_ERR(sleb) == -EUCLEAN)
                                sleb = ubifs_recover_leb(c, lnum, 0,
-                                                        c->sbuf, 0);
+                                                        c->sbuf, -1);
                        if (IS_ERR(sleb)) {
                                err = PTR_ERR(sleb);
                                break;
@@ -929,7 +929,7 @@ static int dbg_check_orphans(struct ubifs_info *c)
        struct check_info ci;
        int err;
 
-       if (!(ubifs_chk_flags & UBIFS_CHK_ORPH))
+       if (!dbg_is_chk_orph(c))
                return 0;
 
        ci.last_ino = 0;