Commit db46361e authored by Nathan Scott's avatar Nathan Scott

[XFS] Cleanup the page buffers loop in writepage (no goto, like 2.4 variant).

SGI Modid: 2.5.x-xfs:slinx:161999a
parent cd6bc28a
...@@ -687,9 +687,12 @@ page_state_convert( ...@@ -687,9 +687,12 @@ page_state_convert(
len = bh->b_size; len = bh->b_size;
do { do {
if (!(PageUptodate(page) || buffer_uptodate(bh)) && !startio) { if (offset >= end_offset)
goto next_bh; break;
} if (!buffer_uptodate(bh))
uptodate = 0;
if (!(PageUptodate(page) || buffer_uptodate(bh)) && !startio)
continue;
if (mp) { if (mp) {
mp = match_offset_to_mapping(page, &map, p_offset); mp = match_offset_to_mapping(page, &map, p_offset);
...@@ -798,14 +801,8 @@ page_state_convert( ...@@ -798,14 +801,8 @@ page_state_convert(
} }
} }
} }
} while (offset += len, p_offset += len,
next_bh: ((bh = bh->b_this_page) != head));
if (!buffer_uptodate(bh))
uptodate = 0;
offset += len;
p_offset += len;
bh = bh->b_this_page;
} while (offset < end_offset);
if (uptodate && bh == head) if (uptodate && bh == head)
SetPageUptodate(page); SetPageUptodate(page);
......
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