From: Alan Huang Date: Fri, 18 Apr 2025 07:52:10 +0000 (+0800) Subject: bcachefs: Kill dead code X-Git-Tag: v6.16-rc1~211^2~149 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09279bba72f809eeb1f02d39a462e8e1d06fa32a;p=thirdparty%2Fkernel%2Flinux.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 a02f483a016a3..fd7a140c9fd68 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]);