aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2011-09-12 04:22:45 +0800
committerpav <pav@FreeBSD.org>2011-09-12 04:22:45 +0800
commit95bffb5add1097cb293c2e96c7fe0a1644440f54 (patch)
tree1d59c8e2f82b0f8c95b47b9b700e23895d12c788 /sysutils
parenta7e602808e3ab4013e21400916c682c8d08efb1e (diff)
downloadfreebsd-ports-gnome-95bffb5add1097cb293c2e96c7fe0a1644440f54.tar.gz
freebsd-ports-gnome-95bffb5add1097cb293c2e96c7fe0a1644440f54.tar.zst
freebsd-ports-gnome-95bffb5add1097cb293c2e96c7fe0a1644440f54.zip
- Fix build on -CURRENT
Submitted by: gk (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/pefs-kmod/files/patch-pefs_vnops.c52
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;
+ }