FreeBSD Bugzilla – Attachment 196119 Details for
Bug 223640
[patch] inline swp_pager_isondev() and replaced to call it
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
2nd patch with style fix
vm_swap_inline_swp_pager_isondev2.diff (text/plain), 865 bytes, created by
ota
on 2018-08-12 05:19:56 UTC
(
hide
)
Description:
2nd patch with style fix
Filename:
MIME Type:
Creator:
ota
Created:
2018-08-12 05:19:56 UTC
Size:
865 bytes
patch
obsolete
>Index: vm/swap_pager.c >=================================================================== >--- vm/swap_pager.c (revision 337679) >+++ vm/swap_pager.c (working copy) >@@ -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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223640
:
187952
| 196119