Whamcloud - gitweb
* obdfs/flushd.c: conditionalized number of C_DEBUG messages.
[fs/lustre-release.git] / lustre / obdclass / genops.c
index f73dc27..b1c88e6 100644 (file)
@@ -59,7 +59,7 @@ void obd_cleanup_obdo_cache(void)
 
 
 /* map connection to client */
-struct obd_client *gen_client(struct obd_conn *conn)
+struct obd_client *gen_client(const struct obd_conn *conn)
 {
         struct obd_device * obddev = conn->oc_dev;
         struct list_head * lh, * next;
@@ -301,7 +301,7 @@ int gen_copy_data(struct obd_conn *dst_conn, struct obdo *dst,
         dst->o_size = src->o_size;
         dst->o_blocks = src->o_blocks;
         dst->o_valid |= (OBD_MD_FLSIZE | OBD_MD_FLBLOCKS);
-        UnlockPage(page);
+        obd_unlock_page(page);
         __free_page(page);
 
         EXIT;