Commit 1e751b46 authored by Stephen Lord's avatar Stephen Lord Committed by Christoph Hellwig

XFS: fix 2.5 specific code for small block size filesystems, there was a

Modid: 2.5.x-xfs:slinx:129109a
parent 3cc814f1
......@@ -545,9 +545,9 @@ _pagebuf_lookup_pages(
size -= nbytes;
if (!PageUptodate(page)) {
if ((blocksize == PAGE_CACHE_SIZE) &&
(flags & PBF_READ)) {
pb->pb_locked = 1;
if (blocksize == PAGE_CACHE_SIZE) {
if (flags & PBF_READ)
pb->pb_locked = 1;
good_pages--;
} else if (!PagePrivate(page)) {
unsigned long i, range = (offset + nbytes) >> SECTOR_SHIFT;
......
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