Commit bf4269d7 authored by Christoph Hellwig's avatar Christoph Hellwig

[XFS] Don't reset buffer offset before using it.

SGI Modid: xfs-linux:xfs-kern:168692a
parent 596f9494
......@@ -396,7 +396,6 @@ _pagebuf_lookup_pages(
nbytes = min_t(size_t, size, PAGE_CACHE_SIZE - offset);
size -= nbytes;
offset = 0;
if (!PageUptodate(page)) {
page_count--;
......@@ -420,6 +419,7 @@ _pagebuf_lookup_pages(
}
bp->pb_pages[i] = page;
offset = 0;
}
if (!bp->pb_locked) {
......
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