struct lvfs_run_ctxt saved;
struct fsfilt_objinfo fso;
struct iattr iattr = { 0 };
- struct inode *inode = NULL;
+ struct inode *inode = res->dentry->d_inode;
unsigned long now = jiffies;
int i, err, cleanup_phase = 0;
struct obd_device *obd = exp->exp_obd;
* decide if it is out of quota or not b=14783 */
lquota_chkquota(filter_quota_interface_ref, obd, oa->o_uid,
oa->o_gid, niocount, &rec_pending, oti,
- LQUOTA_FLAGS_BLK);
+ LQUOTA_FLAGS_BLK, inode, obj->ioo_bufcnt);
iobuf = filter_iobuf_get(&obd->u.filter, oti);
if (IS_ERR(iobuf))
fso.fso_dentry = res->dentry;
fso.fso_bufcnt = obj->ioo_bufcnt;
- inode = res->dentry->d_inode;
iobuf->dr_ignore_quota = 0;
for (i = 0, lnb = res; i < niocount; i++, lnb++) {
cleanup:
if (rec_pending)
lquota_pending_commit(filter_quota_interface_ref, obd, oa->o_uid,
- oa->o_gid, niocount, 1);
+ oa->o_gid, rec_pending, 1);
filter_grant_commit(exp, niocount, res);