if (fmd == NULL)
return;
- cfs_spin_lock(&fed->fed_lock);
+ spin_lock(&fed->fed_lock);
ofd_fmd_put_nolock(exp, fmd); /* caller reference */
- cfs_spin_unlock(&fed->fed_lock);
+ spin_unlock(&fed->fed_lock);
}
/* expire entries from the end of the list if there are too many
{
struct filter_export_data *fed = &exp->exp_filter_data;
- cfs_spin_lock(&fed->fed_lock);
+ spin_lock(&fed->fed_lock);
ofd_fmd_expire_nolock(exp, NULL);
- cfs_spin_unlock(&fed->fed_lock);
+ spin_unlock(&fed->fed_lock);
}
/* find specified fid in fed_fmd_list.
struct filter_export_data *fed = &exp->exp_filter_data;
struct ofd_mod_data *fmd;
- cfs_spin_lock(&fed->fed_lock);
+ spin_lock(&fed->fed_lock);
fmd = ofd_fmd_find_nolock(exp, fid);
if (fmd)
fmd->fmd_refcount++; /* caller reference */
- cfs_spin_unlock(&fed->fed_lock);
+ spin_unlock(&fed->fed_lock);
return fmd;
}
OBD_SLAB_ALLOC_PTR(fmd_new, ll_fmd_cachep);
- cfs_spin_lock(&fed->fed_lock);
+ spin_lock(&fed->fed_lock);
found = ofd_fmd_find_nolock(exp, fid);
if (fmd_new) {
if (found == NULL) {
found->fmd_expire = cfs_time_add(now, ofd->ofd_fmd_max_age);
}
- cfs_spin_unlock(&fed->fed_lock);
+ spin_unlock(&fed->fed_lock);
return found;
}
struct filter_export_data *fed = &exp->exp_filter_data;
struct ofd_mod_data *found = NULL;
- cfs_spin_lock(&fed->fed_lock);
+ spin_lock(&fed->fed_lock);
found = ofd_fmd_find_nolock(exp, fid);
if (found) {
cfs_list_del_init(&found->fmd_list);
ofd_fmd_put_nolock(exp, found);
}
- cfs_spin_unlock(&fed->fed_lock);
+ spin_unlock(&fed->fed_lock);
}
#endif
struct filter_export_data *fed = &exp->exp_filter_data;
struct ofd_mod_data *fmd = NULL, *tmp;
- cfs_spin_lock(&fed->fed_lock);
+ spin_lock(&fed->fed_lock);
cfs_list_for_each_entry_safe(fmd, tmp, &fed->fed_mod_list, fmd_list) {
cfs_list_del_init(&fmd->fmd_list);
if (fmd->fmd_refcount > 1) {
}
ofd_fmd_put_nolock(exp, fmd);
}
- cfs_spin_unlock(&fed->fed_lock);
+ spin_unlock(&fed->fed_lock);
}
int ofd_fmd_init(void)