because we exit early on error, so the mds_destroy_mfd() is bogus. I left
RETURN(rc) in case things change in the future though.
We don't use request_body() anywhere inside mds_put_write_access(), but
since all of that code is just commented out I didn't do a real cleanup.
Just a bogus compiler warning fixed.
struct obd_device *obd = req->rq_export->exp_obd;
struct mds_file_data *mfd = NULL;
obd_id *ids = NULL; /* object IDs created */
- int rc;
+ int rc = 0;
ENTRY;
/* atomically create objects if necessary */
mds_lov_update_objids(obd, ids);
OBD_FREE(ids, sizeof(*ids) * mds->mds_lov_desc.ld_tgt_count);
}
- if (rc)
- mds_mfd_destroy(mfd);
+ //if (rc)
+ // mds_mfd_destroy(mfd);
RETURN(rc);
}
struct mds_obd *mds = &obd->u.mds;
struct inode *pending_dir = mds->mds_pending_dir->d_inode;
void *handle = NULL;
- struct mds_body *request_body, *reply_body;
+ struct mds_body *request_body = NULL, *reply_body;
struct dentry_params dp;
ENTRY;