From: Alan Huang Date: Fri, 18 Apr 2025 07:52:10 +0000 (+0800) Subject: bcachefs: Kill dead code X-Git-Tag: block-6.16-20250606~39^2~149 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=09279bba72f809eeb1f02d39a462e8e1d06fa32a;p=linux-block.git bcachefs: Kill dead code Signed-off-by: Alan Huang Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/journal_reclaim.c b/fs/bcachefs/journal_reclaim.c index a02f483a016a..fd7a140c9fd6 100644 --- a/fs/bcachefs/journal_reclaim.c +++ b/fs/bcachefs/journal_reclaim.c @@ -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]);