From 8a421457f8ee13238c183fe0741fb6d561d9549e Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 8 Aug 2005 22:05:56 +0000 Subject: [PATCH] liblustre doesn't have PageLocked --- lustre/osc/osc_request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index d2dcfe8..64e9ed8 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -1542,8 +1542,9 @@ static int osc_send_oap_rpc(struct client_obd *cli, struct lov_oinfo *loi, * XXX nikita: this assertion should be adjusted when lustre * starts using PG_writeback for pages being written out. */ +#if defined(__KERNEL__) LASSERT(PageLocked(oap->oap_page)); - +#endif /* If there is a gap at the start of this page, it can't merge * with any previous page, so we'll hand the network a * "fragmented" page array that it can't transfer in 1 RDMA */ -- 1.8.3.1