Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148916842
D16712.id46686.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
844 B
Referenced Files
None
Subscribers
None
D16712.id46686.diff
View Options
Index: sys/vm/swap_pager.c
===================================================================
--- sys/vm/swap_pager.c
+++ sys/vm/swap_pager.c
@@ -749,7 +749,7 @@
return (blk);
}
-static int
+static inline int
swp_pager_isondev(daddr_t blk, struct swdevt *sp)
{
@@ -763,7 +763,7 @@
mtx_lock(&sw_dev_mtx);
TAILQ_FOREACH(sp, &swtailq, sw_list) {
- if (bp->b_blkno >= sp->sw_first && bp->b_blkno < sp->sw_end) {
+ if (swp_pager_isondev (bp->b_blkno, sp)) {
mtx_unlock(&sw_dev_mtx);
if ((sp->sw_flags & SW_UNMAPPED) != 0 &&
unmapped_buf_allowed) {
@@ -797,7 +797,7 @@
return;
mtx_lock(&sw_dev_mtx);
TAILQ_FOREACH(sp, &swtailq, sw_list) {
- if (blk >= sp->sw_first && blk < sp->sw_end) {
+ if (swp_pager_isondev (blk, sp)) {
sp->sw_used -= npages;
/*
* If we are attempting to stop swapping on
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 22, 12:10 AM (6 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30098077
Default Alt Text
D16712.id46686.diff (844 B)
Attached To
Mode
D16712: inline swp_pager_isondev() function and use it 2 other places
Attached
Detach File
Event Timeline
Log In to Comment