Whamcloud - gitweb
LU-1431 ptlrpc: Support for over 1MB bulk I/O RPC
[fs/lustre-release.git] / lustre / include / obd.h
index 3be4105..404fc4b 100644 (file)
@@ -494,7 +494,7 @@ struct client_obd {
         /* just a sum of the loi/lop pending numbers to be exported by /proc */
        cfs_atomic_t             cl_pending_w_pages;
        cfs_atomic_t             cl_pending_r_pages;
-       int                      cl_max_pages_per_rpc;
+       __u32                    cl_max_pages_per_rpc;
         int                      cl_max_rpcs_in_flight;
         struct obd_histogram     cl_read_rpc_hist;
         struct obd_histogram     cl_write_rpc_hist;
@@ -1733,4 +1733,10 @@ bad_format:
        return false;
 }
 
+static inline int cli_brw_size(struct obd_device *obd)
+{
+       LASSERT(obd != NULL);
+       return obd->u.cli.cl_max_pages_per_rpc << CFS_PAGE_SHIFT;
+}
+
 #endif /* __OBD_H */