Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 13:28:23 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r220102 - head/sys/kern
Message-ID:  <201103281328.p2SDSNdC095736@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Mar 28 13:28:23 2011
New Revision: 220102
URL: http://svn.freebsd.org/changeset/base/220102

Log:
  Trim white spaces, adjust style.
  
  MFC after:	2 weeks

Modified:
  head/sys/kern/subr_uio.c

Modified: head/sys/kern/subr_uio.c
==============================================================================
--- head/sys/kern/subr_uio.c	Mon Mar 28 13:21:26 2011	(r220101)
+++ head/sys/kern/subr_uio.c	Mon Mar 28 13:28:23 2011	(r220102)
@@ -468,24 +468,26 @@ cloneuio(struct uio *uiop)
 int
 copyout_map(struct thread *td, vm_offset_t *addr, size_t sz)
 {
-	struct vmspace *vms = td->td_proc->p_vmspace;
+	struct vmspace *vms;
 	int error;
 	vm_size_t size;
-	
-	/* 
+
+	vms = td->td_proc->p_vmspace;
+
+	/*
 	 * Map somewhere after heap in process memory.
 	 */
 	PROC_LOCK(td->td_proc);
-	*addr = round_page((vm_offset_t)vms->vm_daddr + 
+	*addr = round_page((vm_offset_t)vms->vm_daddr +
 	    lim_max(td->td_proc, RLIMIT_DATA));
 	PROC_UNLOCK(td->td_proc);
 
 	/* round size up to page boundry */
-	size = (vm_size_t) round_page(sz);
-    
-	error = vm_mmap(&vms->vm_map, addr, size, PROT_READ | PROT_WRITE, 
+	size = (vm_size_t)round_page(sz);
+
+	error = vm_mmap(&vms->vm_map, addr, size, PROT_READ | PROT_WRITE,
 	    VM_PROT_ALL, MAP_PRIVATE | MAP_ANON, OBJT_DEFAULT, NULL, 0);
-	
+
 	return (error);
 }
 
@@ -497,12 +499,12 @@ copyout_unmap(struct thread *td, vm_offs
 {
 	vm_map_t map;
 	vm_size_t size;
-    
+
 	if (sz == 0)
 		return (0);
 
 	map = &td->td_proc->p_vmspace->vm_map;
-	size = (vm_size_t) round_page(sz);	
+	size = (vm_size_t)round_page(sz);
 
 	if (!vm_map_remove(map, addr, addr + size))
 		return (EINVAL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103281328.p2SDSNdC095736>