create = 1;
sem = &obd->u.filter.fo_alloc_lock;
- lquota_enforce(quota_interface, obd, dreq->dr_ignore_quota);
+ lquota_enforce(quota_interface, obd, iobuf->dr_ignore_quota);
}
remap:
rc = fsfilt_map_inode_pages(obd, inode, iobuf->dr_pages,
fso.fso_bufcnt = obj->ioo_bufcnt;
inode = res->dentry->d_inode;
- dreq->dr_ignore_quota = 0;
+ iobuf->dr_ignore_quota = 0;
for (i = 0, lnb = res; i < obj->ioo_bufcnt; i++, lnb++) {
loff_t this_size;
* written by root, then mark the whole io request as ignore
* quota request */
if (lnb->flags & (OBD_BRW_FROM_GRANT | OBD_BRW_NOQUOTA))
- dreq->dr_ignore_quota = 1;
+ iobuf->dr_ignore_quota = 1;
}
push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
int rc = 0;
ENTRY;
- spin_lock(&lov->lov_lock);
+ down(&lov->lov_lock);
if (lov->desc.ld_tgt_count != lov->desc.ld_active_tgt_count) {
CWARN("Not all osts are active, abort quota recovery\n");
- spin_unlock(&lov->lov_lock);
+ up(&lov->lov_lock);
RETURN(rc);
}
- spin_unlock(&lov->lov_lock);
+ up(&lov->lov_lock);
data.obd = obd;
init_completion(&data.comp);