mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Check return value from nonblocking call to vn_start_write().
This commit is contained in:
parent
1493e8838e
commit
db27dcc0f0
1 changed files with 8 additions and 2 deletions
|
|
@ -931,8 +931,14 @@ rescan0:
|
|||
if (object->type == OBJT_VNODE) {
|
||||
vp = object->handle;
|
||||
mp = NULL;
|
||||
if (vp->v_type == VREG)
|
||||
vn_start_write(vp, &mp, V_NOWAIT);
|
||||
if (vp->v_type == VREG &&
|
||||
vn_start_write(vp, &mp, V_NOWAIT) != 0) {
|
||||
++pageout_lock_miss;
|
||||
if (object->flags & OBJ_MIGHTBEDIRTY)
|
||||
vnodes_skipped++;
|
||||
VM_OBJECT_UNLOCK(object);
|
||||
continue;
|
||||
}
|
||||
vm_page_unlock_queues();
|
||||
VI_LOCK(vp);
|
||||
VM_OBJECT_UNLOCK(object);
|
||||
|
|
|
|||
Loading…
Reference in a new issue