#endif
#include <linux/lustre_log.h>
-#include <portals/list.h>
+#include <libcfs/list.h>
/* Create a new log handle and add it to the open list.
* This log handle will be closed when all of the records in it are removed.
up_write(&cathandle->lgh_lock);
RETURN(loghandle);
} else {
- down_write(&loghandle->lgh_lock);
+ up_write(&loghandle->lgh_lock);
}
}
cathandle = ctxt->loc_handle;
if (cathandle)
llog_cat_put(ctxt->loc_handle);
-
-// OBD_FREE(ctxt, sizeof(*ctxt));
+
return 0;
}
EXPORT_SYMBOL(llog_catalog_cleanup);