FreeBSD/sys/fs/nfsclient/nfs_clstate.c
/*
 * This function inserts a lock in the list after insert_lop.
 */
This function inserts a lock in the list after insert_lop.
This function inserts a lock in the list after insert_lop .
static void
nfscl_insertlock(struct nfscllockowner *lp, struct nfscllock *new_lop,
    struct nfscllock *insert_lop, int local)
{
	if ((struct nfscllockowner *)insert_lop == lp)
		LIST_INSERT_HEAD(&lp->nfsl_lock, new_lop, nfslo_list);
	else
		LIST_INSERT_AFTER(insert_lop, new_lop, nfslo_list);
	if (local)
		newnfsstats.cllocallocks++;
	else
		newnfsstats.cllocks++;
}
static void nfscl_insertlock ( struct nfscllockowner * lp , struct nfscllock * new_lop , struct nfscllock * insert_lop , int local ) { if ( ( struct nfscllockowner * ) insert_lop == lp ) LIST_INSERT_HEAD ( & lp -> nfsl_lock , new_lop , nfslo_list ) ; else LIST_INSERT_AFTER ( insert_lop , new_lop , nfslo_list ) ; if ( local ) newnfsstats . cllocallocks ++ ; else newnfsstats . cllocks ++ ; }
This function inserts a lock in the list after insert_lop.
This function inserts a lock in the list after insert_lop .