diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2011-09-11 20:22:45 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2011-09-11 20:22:45 +0000 |
commit | d7b48707ddc6df3cafe1484fe2e7ff54d0359568 (patch) | |
tree | e366c686aa27429a3272936482528d8243d3e5a0 /sysutils/pefs-kmod | |
parent | 94b08c8e01ff8f9f7816ded95bc62bebd5d98e4e (diff) | |
download | ports-d7b48707ddc6df3cafe1484fe2e7ff54d0359568.tar.gz ports-d7b48707ddc6df3cafe1484fe2e7ff54d0359568.zip |
Notes
Diffstat (limited to 'sysutils/pefs-kmod')
-rw-r--r-- | sysutils/pefs-kmod/files/patch-pefs_vnops.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sysutils/pefs-kmod/files/patch-pefs_vnops.c b/sysutils/pefs-kmod/files/patch-pefs_vnops.c new file mode 100644 index 000000000000..c7fe06ded44c --- /dev/null +++ b/sysutils/pefs-kmod/files/patch-pefs_vnops.c @@ -0,0 +1,52 @@ +commit 7c69f523b561e4a983582b7e874ac28956171b43 +Author: Gleb Kurtsou <gleb.kurtsou@gmail.com> +Date: Sun Sep 11 17:38:36 2011 +0300 + + Use vm_page_aflag_set(PGA_WRITEABLE) + + PG_WRITEABLE was removed in r225418 + __FreeBSD_version was bumped 4 days later + +diff --git a/sys/fs/pefs/pefs_vnops.c b/sys/fs/pefs/pefs_vnops.c +index 6255831..bda625c 100644 +--- sys/fs/pefs/pefs_vnops.c ++++ sys/fs/pefs/pefs_vnops.c +@@ -1808,8 +1808,12 @@ lookupvpg: + * sleeping so that the page daemon is less + * likely to reclaim it. + */ ++#if __FreeBSD_version >= 900044 ++ vm_page_aflag_set(m, PGA_REFERENCED); ++#else + vm_page_lock_queues(); + vm_page_flag_set(m, PG_REFERENCED); ++#endif + vm_page_sleep(m, "pefsmr"); + goto lookupvpg; + } +@@ -1840,8 +1844,12 @@ lookupvpg: + * sleeping so that the page daemon is less + * likely to reclaim it. + */ ++#if __FreeBSD_version >= 900044 ++ vm_page_aflag_set(m, PGA_REFERENCED); ++#else + vm_page_lock_queues(); + vm_page_flag_set(m, PG_REFERENCED); ++#endif + vm_page_sleep(m, "pefsmr"); + goto lookupvpg; + } +@@ -2012,8 +2020,12 @@ lookupvpg: + * sleeping so that the page daemon is less + * likely to reclaim it. + */ ++#if __FreeBSD_version >= 900044 ++ vm_page_aflag_set(m, PGA_REFERENCED); ++#else + vm_page_lock_queues(); + vm_page_flag_set(m, PG_REFERENCED); ++#endif + vm_page_sleep(m, "pefsmw"); + goto lookupvpg; + } |