* in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see [sun.com URL with a
- * copy of GPLv2].
+ * version 2 along with this program; If not, see
+ * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
LASSERT (the_lnet.ln_init);
LASSERT (the_lnet.ln_refcount > 0);
- if (portal >= the_lnet.ln_nportals)
+ if ((int)portal >= the_lnet.ln_nportals)
return -EINVAL;
me = lnet_me_alloc();
lnet_initialise_handle (&me->me_lh, LNET_COOKIE_TYPE_ME);
if (pos == LNET_INS_AFTER)
- list_add_tail(&me->me_list, &(the_lnet.ln_portals[portal].ptl_ml));
+ cfs_list_add_tail(&me->me_list,
+ &(the_lnet.ln_portals[portal].ptl_ml));
else
- list_add(&me->me_list, &(the_lnet.ln_portals[portal].ptl_ml));
+ cfs_list_add(&me->me_list,
+ &(the_lnet.ln_portals[portal].ptl_ml));
lnet_me2handle(handle, me);
lnet_initialise_handle (&new_me->me_lh, LNET_COOKIE_TYPE_ME);
if (pos == LNET_INS_AFTER)
- list_add(&new_me->me_list, ¤t_me->me_list);
+ cfs_list_add(&new_me->me_list, ¤t_me->me_list);
else
- list_add_tail(&new_me->me_list, ¤t_me->me_list);
+ cfs_list_add_tail(&new_me->me_list, ¤t_me->me_list);
lnet_me2handle(handle, new_me);
void
lnet_me_unlink(lnet_me_t *me)
{
- list_del (&me->me_list);
+ cfs_list_del (&me->me_list);
if (me->me_md != NULL) {
me->me_md->md_me = NULL;
CWARN("\tMD\t= %p\n", me->md);
CWARN("\tprev\t= %p\n",
- list_entry(me->me_list.prev, lnet_me_t, me_list));
+ cfs_list_entry(me->me_list.prev, lnet_me_t, me_list));
CWARN("\tnext\t= %p\n",
- list_entry(me->me_list.next, lnet_me_t, me_list));
+ cfs_list_entry(me->me_list.next, lnet_me_t, me_list));
}
#endif