View | Details | Raw Unified | Return to bug 276002 | Differences between
and this patch

Collapse All | Expand All

(-)sys/fs/nfsclient/nfs_clbio.c (-1 / +6 lines)
Lines 335-345 ncl_putpages(struct vop_putpages_args *ap) Link Here
335
	uio.uio_rw = UIO_WRITE;
335
	uio.uio_rw = UIO_WRITE;
336
	uio.uio_td = td;
336
	uio.uio_td = td;
337
337
338
	error = VOP_WRITE(vp, &uio, vnode_pager_putpages_ioflags(ap->a_sync),
338
	error = VOP_WRITE(vp, &uio, vnode_pager_putpages_ioflags(ap->a_sync | VM_PAGER_PUT_SYNC),
339
	    cred);
339
	    cred);
340
if (error != 0) printf("aft putpages=%d\n", error);
340
	crfree(cred);
341
	crfree(cred);
341
342
343
#ifdef notnow
342
	if (error == 0 || !nfs_keep_dirty_on_error) {
344
	if (error == 0 || !nfs_keep_dirty_on_error) {
345
#else
346
	if (error != 0 && !nfs_keep_dirty_on_error) {
347
#endif
343
		vnode_pager_undirty_pages(pages, rtvals, count - uio.uio_resid,
348
		vnode_pager_undirty_pages(pages, rtvals, count - uio.uio_resid,
344
		    np->n_size - offset, npages * PAGE_SIZE);
349
		    np->n_size - offset, npages * PAGE_SIZE);
345
	}
350
	}

Return to bug 276002