1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

There can be more than 0x20000000 swap meta blocks allocated if a swap-backed

md(4) device is used. Don't panic when deallocating such a device if swap
has been used.

PR:	kern/133170
Discussed with:	kib
MFC after:	3 days
This commit is contained in:
Rebecca Cran 2011-01-01 16:59:05 +00:00
parent be25acf4a5
commit 4c18dec9a9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216873

View File

@ -1679,8 +1679,6 @@ swap_pager_isswapped(vm_object_t object, struct swdevt *sp)
}
}
index += SWAP_META_PAGES;
if (index > 0x20000000)
panic("swap_pager_isswapped: failed to locate all swap meta blocks");
}
mtx_unlock(&swhash_mtx);
return (0);
@ -1995,8 +1993,6 @@ swp_pager_meta_free_all(vm_object_t object)
}
mtx_unlock(&swhash_mtx);
index += SWAP_META_PAGES;
if (index > 0x20000000)
panic("swp_pager_meta_free_all: failed to locate all swap meta blocks");
}
}