* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2012, Intel Corporation.
+ * Copyright (c) 2011, 2013, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
* per-NID statistics structure.
* It tracks access patterns to this export on a per-client-NID basis
*/
-typedef struct nid_stat {
+struct nid_stat {
lnet_nid_t nid;
cfs_hlist_node_t nid_hash;
cfs_list_t nid_list;
struct proc_dir_entry *nid_proc;
struct lprocfs_stats *nid_stats;
struct lprocfs_stats *nid_ldlm_stats;
- struct brw_stats *nid_brw_stats;
cfs_atomic_t nid_exp_ref_count; /* for obd_nid_stats_hash
exp_nid_stats */
-}nid_stat_t;
+};
#define nidstat_getref(nidstat) \
do { \
*/
struct obd_import *exp_imp_reverse;
struct nid_stat *exp_nid_stats;
- struct lprocfs_stats *exp_md_stats;
/** Active connetion */
struct ptlrpc_connection *exp_connection;
/** Connection count value from last succesful reconnect rpc */
return *exp_connect_flags_ptr(exp);
}
-static inline int exp_brw_size(struct obd_export *exp)
+static inline int exp_max_brw_size(struct obd_export *exp)
{
LASSERT(exp != NULL);
if (exp_connect_flags(exp) & OBD_CONNECT_BRW_SIZE)
return ONE_MB_BRW_SIZE;
}
+static inline int exp_connect_multibulk(struct obd_export *exp)
+{
+ return exp_max_brw_size(exp) > ONE_MB_BRW_SIZE;
+}
+
static inline int exp_expired(struct obd_export *exp, cfs_duration_t age)
{
LASSERT(exp->exp_delayed);