summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorDina K Nimeh <Dina.Nimeh@Sun.Com>2008-11-10 11:54:03 -0800
committerDina K Nimeh <Dina.Nimeh@Sun.Com>2008-11-10 11:54:03 -0800
commitbbd65dd21832305e14110aacf248e9081638d663 (patch)
treef96e46a5527acc3e166b7c8a67294fc7fb5914d8 /usr
parent64d1d4ab72834b7483c7962efc738b568ca8792e (diff)
downloadillumos-gate-bbd65dd21832305e14110aacf248e9081638d663.tar.gz
6743207 lofi page cache fix does not work for non-8K pagesizes
Diffstat (limited to 'usr')
-rw-r--r--usr/src/uts/common/io/lofi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/lofi.c b/usr/src/uts/common/io/lofi.c
index b881f2c8c2..e5f91f73aa 100644
--- a/usr/src/uts/common/io/lofi.c
+++ b/usr/src/uts/common/io/lofi.c
@@ -401,7 +401,7 @@ lofi_mapped_rdwr(caddr_t bufaddr, offset_t offset, struct buf *bp,
* we won't need it again. Put it on the
* head of the freelist.
*/
- if (mapoffset == 0 && xfersize == PAGESIZE)
+ if (mapoffset == 0 && xfersize == MAXBSIZE)
smflags |= SM_DONTNEED;
bcopy(mapaddr + mapoffset, bufaddr, xfersize);
} else {