From 6e73b418887675da18602550ca296211caeb3897 Mon Sep 17 00:00:00 2001
From: Vlad Apostolov <vapo@sgi.com>
Date: Thu, 28 Sep 2006 11:06:21 +1000
Subject: [PATCH] [XFS] 955947: Infinite loop in xfs_bulkstat() on formatter()
 error

SGI-PV: 955947
SGI-Modid: xfs-linux-melb:xfs-kern:26986a

Signed-off-by: Vlad Apostolov <vapo@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
---
 fs/xfs/xfs_itable.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index 80e5b96f5027..7775ddc0b3c6 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -647,6 +647,8 @@ xfs_bulkstat(
                                         }
 					else if (error == ENOMEM)
 						ubleft = 0;
+					else
+						lastino = ino;
 					continue;
 				}
 				if (fmterror == BULKSTAT_RV_GIVEUP) {