Signed-off-by: Wang Xiaoguang <wangxg.f...@cn.fujitsu.com>
---
V1: Just one small codes cleanup, if you think it's not appropriate to
    make a individual patch for it, please ignore it :)
---
 fs/btrfs/extent-tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 9aa6d2c..3c8f0ec 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -2823,7 +2823,7 @@ int btrfs_should_throttle_delayed_refs(struct 
btrfs_trans_handle *trans,
        smp_mb();
        avg_runtime = fs_info->avg_delayed_ref_runtime;
        val = num_entries * avg_runtime;
-       if (num_entries * avg_runtime >= NSEC_PER_SEC)
+       if (val >= NSEC_PER_SEC)
                return 1;
        if (val >= NSEC_PER_SEC / 2)
                return 2;
-- 
2.9.0



--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to