bcachefs: Kill dead code
authorAlan Huang <mmpgouride@gmail.com>
Fri, 18 Apr 2025 07:52:10 +0000 (15:52 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:24 +0000 (20:14 -0400)
Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_reclaim.c

index a02f483a016a34da8f2b5731361341e5e5a30280..fd7a140c9fd68294a090220b862c5aae916493fd 100644 (file)
@@ -637,8 +637,6 @@ static u64 journal_seq_to_flush(struct journal *j)
                /* Try to keep the journal at most half full: */
                nr_buckets = ja->nr / 2;
 
-               nr_buckets = min(nr_buckets, ja->nr);
-
                bucket_to_flush = (ja->cur_idx + nr_buckets) % ja->nr;
                seq_to_flush = max(seq_to_flush,
                                   ja->bucket_seq[bucket_to_flush]);