summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-05-06 05:45:57 +0000
committeralc <alc@FreeBSD.org>2002-05-06 05:45:57 +0000
commitd60a525036422ccbba23ce156a0a31a69aa7ebbb (patch)
tree8750eed2fb1169b9dac9c1c7e15f630aca3a5177 /sys/ufs
parentbfe0870a5677e80b9c46e2321657e424a6a20614 (diff)
downloadFreeBSD-src-d60a525036422ccbba23ce156a0a31a69aa7ebbb.zip
FreeBSD-src-d60a525036422ccbba23ce156a0a31a69aa7ebbb.tar.gz
o Condition the compilation and use of vm_freeze_copyopts()
on ENABLE_VFS_IOOPT.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/ufs_readwrite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_readwrite.c b/sys/ufs/ufs/ufs_readwrite.c
index cf8a5a0..c9a0e6f 100644
--- a/sys/ufs/ufs/ufs_readwrite.c
+++ b/sys/ufs/ufs/ufs_readwrite.c
@@ -473,12 +473,13 @@ WRITE(ap)
if ((ioflag & IO_SYNC) && !DOINGASYNC(vp))
flags = B_SYNC;
+#ifdef ENABLE_VFS_IOOPT
if (object && (object->flags & OBJ_OPT)) {
vm_freeze_copyopts(object,
OFF_TO_IDX(uio->uio_offset),
OFF_TO_IDX(uio->uio_offset + uio->uio_resid + PAGE_MASK));
}
-
+#endif
for (error = 0; uio->uio_resid > 0;) {
lbn = lblkno(fs, uio->uio_offset);
blkoffset = blkoff(fs, uio->uio_offset);
OpenPOWER on IntegriCloud