Commit 092488f7 authored by Nathan Scott's avatar Nathan Scott

[XFS] Add a validity check for unwritten extents, trying to trap a problem

on ia64.

SGI Modid: 2.5.x-xfs:slinx:144727a
parent a22762af
......@@ -398,6 +398,12 @@ map_unwritten(
nblocks++;
} while ((bh = bh->b_this_page) != head);
if (unlikely(nblocks == 0)) {
printk("XFS: bad unwritten extent map: bh=0x%p, mp=0x%p\n",
curr, mp);
BUG();
}
atomic_add(nblocks, &pb->pb_io_remaining);
/* If we reached the end of the page, map forwards in any
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment