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:
557ed56
)
md/raid5-cache: delete meaningless code
author
Shaohua Li
<shli@fb.com>
Wed, 11 Jan 2017 21:38:52 +0000
(13:38 -0800)
committer
Shaohua Li
<shli@fb.com>
Tue, 24 Jan 2017 19:20:13 +0000
(11:20 -0800)
sector_t is unsigned long, it's never < 0
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-cache.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/raid5-cache.c
b/drivers/md/raid5-cache.c
index 0e8ed2c327b07fd849c1720d7b272dd860b949b9..e0d6dd1835d03f031b2dc41e472113997dcee20f 100644
(file)
--- a/
drivers/md/raid5-cache.c
+++ b/
drivers/md/raid5-cache.c
@@
-1393,8
+1393,6
@@
static void r5l_do_reclaim(struct r5l_log *log)
next_checkpoint = r5c_calculate_new_cp(conf);
spin_unlock_irq(&log->io_list_lock);
- BUG_ON(reclaimable < 0);
-
if (reclaimable == 0 || !write_super)
return;