projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf8cddd
)
btrfs: cleanup: use already calculated value in btrfs_should_throttle_delayed_refs()
author
Wang Xiaoguang
<wangxg.fnst@cn.fujitsu.com>
Wed, 26 Oct 2016 07:23:01 +0000
(15:23 +0800)
committer
David Sterba
<dsterba@suse.com>
Tue, 29 Nov 2016 13:10:38 +0000
(14:10 +0100)
Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/extent-tree.c
b/fs/btrfs/extent-tree.c
index 87ad2ebcac6282f6b37bee210d3ab6daae015847..62b6e2023e12e99bc982f8e7b7f1bd887863b7c6 100644
(file)
--- a/
fs/btrfs/extent-tree.c
+++ b/
fs/btrfs/extent-tree.c
@@
-2826,7
+2826,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;