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:
parent
35e43d9cad
commit
7a13f01f6f
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user