Whamcloud - gitweb
LU-1431 ptlrpc: Support for over 1MB bulk I/O RPC
[fs/lustre-release.git] / lustre / include / lustre_export.h
index b2250d3..29f6167 100644 (file)
@@ -281,7 +281,7 @@ static inline __u64 exp_connect_flags(struct obd_export *exp)
        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)
@@ -290,6 +290,11 @@ static inline int exp_brw_size(struct obd_export *exp)
        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);