Commit d46d29f0 authored by Shaohua Li's avatar Shaohua Li

md/raid5-cache: delete meaningless code

sector_t is unsigned long, it's never < 0
Reported-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent 557ed56c
...@@ -1393,8 +1393,6 @@ static void r5l_do_reclaim(struct r5l_log *log) ...@@ -1393,8 +1393,6 @@ static void r5l_do_reclaim(struct r5l_log *log)
next_checkpoint = r5c_calculate_new_cp(conf); next_checkpoint = r5c_calculate_new_cp(conf);
spin_unlock_irq(&log->io_list_lock); spin_unlock_irq(&log->io_list_lock);
BUG_ON(reclaimable < 0);
if (reclaimable == 0 || !write_super) if (reclaimable == 0 || !write_super)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment