]> Pileus Git - ~andy/linux/blobdiff - fs/ubifs/log.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs...
[~andy/linux] / fs / ubifs / log.c
index affea9494ae23551fd34109f009ad6f74cdec276..f9fd068d1ae0971ea7a27a821d65c3164b1ad26c 100644 (file)
@@ -262,7 +262,7 @@ int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs)
                 * an unclean reboot, because the target LEB might have been
                 * unmapped, but not yet physically erased.
                 */
-               err = ubi_leb_map(c->ubi, bud->lnum, UBI_SHORTTERM);
+               err = ubifs_leb_map(c, bud->lnum, UBI_SHORTTERM);
                if (err)
                        goto out_unlock;
        }
@@ -283,8 +283,6 @@ int ubifs_add_bud_to_log(struct ubifs_info *c, int jhead, int lnum, int offs)
        return 0;
 
 out_unlock:
-       if (err != -EAGAIN)
-               ubifs_ro_mode(c, err);
        mutex_unlock(&c->log_mutex);
        kfree(ref);
        kfree(bud);
@@ -752,7 +750,7 @@ static int dbg_check_bud_bytes(struct ubifs_info *c)
        struct ubifs_bud *bud;
        long long bud_bytes = 0;
 
-       if (!(ubifs_chk_flags & UBIFS_CHK_GEN))
+       if (!dbg_is_chk_gen(c))
                return 0;
 
        spin_lock(&c->buds_lock);