Whamcloud - gitweb
LU-6174 nrs: perform proper division
[fs/lustre-release.git] / lustre / include / lustre_nrs_tbf.h
index 0a40719..7141146 100644 (file)
@@ -102,7 +102,7 @@ struct nrs_tbf_client {
        /** Generation of the rule matched. */
        __u64                            tc_rule_generation;
        /** Limit of RPC rate. */
-       __u64                            tc_rpc_rate;
+       u32                              tc_rpc_rate;
        /** Time to wait for next token. */
        __u64                            tc_nsecs;
        /** RPC token number. */
@@ -169,9 +169,9 @@ struct nrs_tbf_rule {
        /** Generic condition string of the rule. */
        char                            *tr_conds_str;
        /** RPC/s limit. */
-       __u64                            tr_rpc_rate;
+       u32                              tr_rpc_rate;
        /** Time to wait for next token. */
-       __u64                            tr_nsecs;
+       u64                              tr_nsecs_per_rpc;
        /** Token bucket depth. */
        __u64                            tr_depth;
        /** Lock to protect the list of clients. */