Get the vnode from file.f_vnode instead of file.f_data.

Nowadays, f_data points to the vnode only if the underlying filesystem
doesn't use it for other purposes (devfs uses it to store the cdev,
for example).

Found by:	csjp
Reviewed by:	csjp
Approved by:	phk, wes, grehan (mentor)
MFC after:	1 week
This commit is contained in:
Suleiman Souhlal 2005-01-11 18:52:12 +00:00
parent 35e43d9cad
commit 7a13f01f6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140078

View File

@ -375,7 +375,7 @@ dofiles(struct kinfo_proc *kp)
continue;
}
if (file.f_type == DTYPE_VNODE)
vtrans(file.f_data, i, file.f_flag);
vtrans(file.f_vnode, i, file.f_flag);
else if (file.f_type == DTYPE_SOCKET) {
if (checkfile == 0)
socktrans(file.f_data, i);
@ -389,7 +389,7 @@ dofiles(struct kinfo_proc *kp)
#ifdef DTYPE_FIFO
else if (file.f_type == DTYPE_FIFO) {
if (checkfile == 0)
vtrans(file.f_data, i, file.f_flag);
vtrans(file.f_vnode, i, file.f_flag);
}
#endif
else {