diff options
author | Dina K Nimeh <Dina.Nimeh@Sun.Com> | 2008-11-10 11:54:03 -0800 |
---|---|---|
committer | Dina K Nimeh <Dina.Nimeh@Sun.Com> | 2008-11-10 11:54:03 -0800 |
commit | bbd65dd21832305e14110aacf248e9081638d663 (patch) | |
tree | f96e46a5527acc3e166b7c8a67294fc7fb5914d8 /usr | |
parent | 64d1d4ab72834b7483c7962efc738b568ca8792e (diff) | |
download | illumos-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.c | 2 |
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 { |