mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Instead of forcing vn_start_write() to reset mp back to NULL for the
failed calls with non-NULL vp, explicitely clear mp after failure. Tested by: stass Reviewed by: tegge PR: 123768 MFC after: 1 week
This commit is contained in:
parent
c5f77bf986
commit
6129343d5d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185012
@ -944,8 +944,7 @@ vm_pageout_scan(int pass)
|
||||
vp = object->handle;
|
||||
if (vp->v_type == VREG &&
|
||||
vn_start_write(vp, &mp, V_NOWAIT) != 0) {
|
||||
KASSERT(mp == NULL,
|
||||
("vm_pageout_scan: mp != NULL"));
|
||||
mp = NULL;
|
||||
++pageout_lock_miss;
|
||||
if (object->flags & OBJ_MIGHTBEDIRTY)
|
||||
vnodes_skipped++;
|
||||
|
Loading…
Reference in New Issue
Block a user