xfs
[Top] [All Lists]

[PATCH] xail idbg command doesn't increment count in each loop

To: xfs-oss <xfs@xxxxxxxxxxx>, xfs-dev <xfs-dev@xxxxxxx>
Subject: [PATCH] xail idbg command doesn't increment count in each loop
From: Lachlan McIlroy <lachlan@xxxxxxx>
Date: Fri, 19 Sep 2008 12:38:13 +1000
Reply-to: lachlan@xxxxxxx
User-agent: Thunderbird 2.0.0.16 (X11/20080707)
count is never incremented on each log item because it is unreachable code.

--- a/fs/xfs/xfsidbg.c  2008-09-19 12:27:05.000000000 +1000
+++ b/fs/xfs/xfsidbg.c  2008-09-16 12:34:12.000000000 +1000
@@ -6249,8 +6249,8 @@ xfsidbg_xaildump(xfs_mount_t *mp)
                default:
                        kdb_printf("Unknown item type %d\n", lip->li_type);
                        break;
-               count++;
                }
+               count++;
        }
}

<Prev in Thread] Current Thread [Next in Thread>