summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-12-08 13:15:31 +0000
committerkib <kib@FreeBSD.org>2008-12-08 13:15:31 +0000
commit5981f9f73b6b5c935c74afc6fcff91d16d67515a (patch)
tree28d456f3fabbf6c41d9c9bc9b25d209eced6d36c /sys/fs/procfs
parent4f0c734de3a80aa26126f5589d78de161c559073 (diff)
downloadFreeBSD-src-5981f9f73b6b5c935c74afc6fcff91d16d67515a.zip
FreeBSD-src-5981f9f73b6b5c935c74afc6fcff91d16d67515a.tar.gz
Make two style changes to create new commit and document proper commit
message for r185765. Noted by: rdivacky Requested by: des Commit message for r185765 should be: In procfs map handler, and in linprocfs maps handler, do not call vn_fullpath() while having vm map locked. This is done in anticipation of the vop_vptocnp commit, that would make vn_fullpath sometime acquire vnode lock. Also, in linprocfs, maps handler already acquires vnode lock. No objections from: des MFC after: 2 week
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r--sys/fs/procfs/procfs_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c
index 11aa713..9e36b54 100644
--- a/sys/fs/procfs/procfs_map.c
+++ b/sys/fs/procfs/procfs_map.c
@@ -82,11 +82,11 @@ extern struct sysentvec ia32_freebsd_sysvec;
int
procfs_doprocmap(PFS_FILL_ARGS)
{
- int error, vfslocked;
vm_map_t map = &p->p_vmspace->vm_map;
vm_map_entry_t entry, tmp_entry;
struct vnode *vp;
char *fullpath, *freepath;
+ int error, vfslocked;
unsigned int last_timestamp;
#ifdef COMPAT_IA32
int wrap32 = 0;
OpenPOWER on IntegriCloud