* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2012, Whamcloud, Inc.
+ * Copyright (c) 2012, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
RETURN(0);
}
-int ofd_auth_capa(struct obd_export *exp, struct lu_fid *fid, obd_seq seq,
- struct lustre_capa *capa, __u64 opc)
+int ofd_auth_capa(struct obd_export *exp, const struct lu_fid *fid,
+ obd_seq seq, struct lustre_capa *capa, __u64 opc)
{
struct filter_obd *filter = &exp->exp_obd->u.filter;
struct filter_capa_key *k;
if (!filter->fo_fl_oss_capa)
RETURN(0);
- if (!(exp->exp_connect_flags & OBD_CONNECT_OSS_CAPA))
+ if (!(exp_connect_flags(exp) & OBD_CONNECT_OSS_CAPA))
RETURN(0);
if (capa == NULL) {