debug.c (1a29af8bd740b2720caeafbffece1c0be6a9d06d) debug.c (1321657d8f843641529eff26e25722158cc29349)
1/*
2 * This file is part of UBIFS.
3 *
4 * Copyright (C) 2006-2008 Nokia Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.

--- 732 unchanged lines hidden (view full) ---

741 printk(KERN_CONT "%s", s);
742 }
743
744 for (rb = rb_first((struct rb_root *)&c->buds); rb; rb = rb_next(rb)) {
745 bud = rb_entry(rb, struct ubifs_bud, rb);
746 if (bud->lnum == lp->lnum) {
747 int head = 0;
748 for (i = 0; i < c->jhead_cnt; i++) {
1/*
2 * This file is part of UBIFS.
3 *
4 * Copyright (C) 2006-2008 Nokia Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.

--- 732 unchanged lines hidden (view full) ---

741 printk(KERN_CONT "%s", s);
742 }
743
744 for (rb = rb_first((struct rb_root *)&c->buds); rb; rb = rb_next(rb)) {
745 bud = rb_entry(rb, struct ubifs_bud, rb);
746 if (bud->lnum == lp->lnum) {
747 int head = 0;
748 for (i = 0; i < c->jhead_cnt; i++) {
749 if (lp->lnum == c->jheads[i].wbuf.lnum) {
749 /*
750 * Note, if we are in R/O mode or in the middle
751 * of mounting/re-mounting, the write-buffers do
752 * not exist.
753 */
754 if (c->jheads &&
755 lp->lnum == c->jheads[i].wbuf.lnum) {
750 printk(KERN_CONT ", jhead %s",
751 dbg_jhead(i));
752 head = 1;
753 }
754 }
755 if (!head)
756 printk(KERN_CONT ", bud of jhead %s",
757 dbg_jhead(bud->jhead));

--- 2143 unchanged lines hidden ---
756 printk(KERN_CONT ", jhead %s",
757 dbg_jhead(i));
758 head = 1;
759 }
760 }
761 if (!head)
762 printk(KERN_CONT ", bud of jhead %s",
763 dbg_jhead(bud->jhead));

--- 2143 unchanged lines hidden ---