Whamcloud - gitweb
LU-4937 osc: get rid of old checksum initial value
[fs/lustre-release.git] / lustre / ofd / ofd_capa.c
index 291f772..d9a645f 100644 (file)
@@ -27,7 +27,7 @@
  * 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/
@@ -103,8 +103,8 @@ int ofd_update_capa_key(struct ofd_device *ofd, struct lustre_capa_key *new)
        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;
@@ -123,7 +123,7 @@ int ofd_auth_capa(struct obd_export *exp, struct lu_fid *fid, obd_seq seq,
        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) {