* Lustre is a trademark of Sun Microsystems, Inc.
*/
-#ifndef EXPORT_SYMTAB
-# define EXPORT_SYMTAB
-#endif
#define DEBUG_SUBSYSTEM S_LMV
#ifdef __KERNEL__
#include <linux/slab.h>
int lmmsize, struct lookup_intent *it,
int flags, struct ptlrpc_request **reqp,
ldlm_blocking_callback cb_blocking,
- int extra_lock_flags)
+ __u64 extra_lock_flags)
{
struct obd_device *obd = exp->exp_obd;
struct lmv_obd *lmv = &obd->u.lmv;
void *lmm, int lmmsize, struct lookup_intent *it,
int flags, struct ptlrpc_request **reqp,
ldlm_blocking_callback cb_blocking,
- int extra_lock_flags)
+ __u64 extra_lock_flags)
{
struct obd_device *obd = exp->exp_obd;
struct lu_fid rpid = op_data->op_fid1;
void *lmm, int lmmsize, struct lookup_intent *it,
int flags, struct ptlrpc_request **reqp,
ldlm_blocking_callback cb_blocking,
- int extra_lock_flags)
+ __u64 extra_lock_flags)
{
struct obd_device *obd = exp->exp_obd;
struct lu_fid rpid = op_data->op_fid1;
void *lmm, int lmmsize, struct lookup_intent *it,
int flags, struct ptlrpc_request **reqp,
ldlm_blocking_callback cb_blocking,
- int extra_lock_flags)
+ __u64 extra_lock_flags)
{
struct obd_device *obd = exp->exp_obd;
int rc;
int lmv_revalidate_slaves(struct obd_export *exp, struct ptlrpc_request **reqp,
const struct lu_fid *mid, struct lookup_intent *oit,
int master_valid, ldlm_blocking_callback cb_blocking,
- int extra_lock_flags)
+ __u64 extra_lock_flags)
{
struct obd_device *obd = exp->exp_obd;
struct lmv_obd *lmv = &obd->u.lmv;
* cached all the time.
*/
obj = lmv_object_find_lock(obd, mid);
- if (obj == NULL)
- RETURN(-EALREADY);
+ if (obj == NULL) {
+ OBD_FREE_PTR(op_data);
+ RETURN(-EALREADY);
+ }
for (i = 0; i < obj->lo_objcount; i++) {
fid = obj->lo_stripes[i].ls_fid;