From f26a598786dfccefbfa26329dd3fa5393ba711af Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 5 Jun 2002 23:38:04 +0000 Subject: [PATCH 1/1] Get rid of local definition of ___wait_on_page. It existed at least as far back as 2.4.0-prerelease and all 2.4.0-test kernels. It also breaks with current RH RMAP kernels as well. --- lustre/obdclass/genops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index 8ef7600..3a05363 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -199,6 +199,7 @@ int gen_cleanup(struct obd_device * obddev) return 0; } /* sim_cleanup_device */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0) void ___wait_on_page(struct page *page) { struct task_struct *tsk = current; @@ -215,6 +216,7 @@ void ___wait_on_page(struct page *page) tsk->state = TASK_RUNNING; remove_wait_queue(&page->wait, &wait); } +#endif void lck_page(struct page *page) { -- 1.8.3.1