summaryrefslogtreecommitdiffstats
path: root/sys/fs/nwfs/nwfs_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/nwfs/nwfs_io.c')
-rw-r--r--sys/fs/nwfs/nwfs_io.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/fs/nwfs/nwfs_io.c b/sys/fs/nwfs/nwfs_io.c
index a64b844..d0ab8e5 100644
--- a/sys/fs/nwfs/nwfs_io.c
+++ b/sys/fs/nwfs/nwfs_io.c
@@ -440,8 +440,7 @@ nwfs_getpages(ap)
relpbuf(bp, &nwfs_pbuf_freecnt);
- if (error)
- VM_OBJECT_LOCK(object);
+ VM_OBJECT_LOCK(object);
if (error && (uio.uio_resid == count)) {
printf("nwfs_getpages: error %d\n",error);
vm_page_lock_queues();
@@ -497,8 +496,7 @@ nwfs_getpages(ap)
}
}
vm_page_unlock_queues();
- if (error)
- VM_OBJECT_UNLOCK(object);
+ VM_OBJECT_UNLOCK(object);
return 0;
#endif /* NWFS_RWCACHE */
}
OpenPOWER on IntegriCloud