/**
* list_for_remaining_safe - iterate over the remaining entries in a list
* and safeguard against removal of a list entry.
- * @pos: the &struct list_head to use as a loop counter. pos MUST
+ * \param pos the &struct list_head to use as a loop counter. pos MUST
* have been initialized prior to using it in this macro.
- * @n: another &struct list_head to use as temporary storage
- * @head: the head for your list.
+ * \param n another &struct list_head to use as temporary storage
+ * \param head the head for your list.
*/
#define list_for_remaining_safe(pos, n, head) \
for (n = pos->next; pos != (head); pos = n, n = pos->next)
new->l_policy_data.l_flock.end + 1;
new2->l_conn_export = lock->l_conn_export;
if (lock->l_export != NULL) {
- new2->l_export = class_export_get(lock->l_export);
+ new2->l_export = class_export_lock_get(lock->l_export);
if (new2->l_export->exp_lock_hash &&
hlist_unhashed(&new2->l_exp_hash))
lustre_hash_add(new2->l_export->exp_lock_hash,
cfs_flock_set_pid(getlk,
(pid_t)lock->l_policy_data.l_flock.pid);
cfs_flock_set_start(getlk,
- (loff_t)lock->l_policy_data.l_flock.start);
+ (loff_t)lock->l_policy_data.l_flock.start);
cfs_flock_set_end(getlk,
(loff_t)lock->l_policy_data.l_flock.end);
} else {