Skip to contentSkip to conversation

bcachefs: Kill dead code

PATCH Applied Alan Huang 2 participants 2 messages Apr 18, 2025

lore
Share & tools
lore

Alan Huang

author
#0 lore raw

PATCH 1/1 bcachefs: Kill dead code

---
 fs/bcachefs/journal_reclaim.c | 2 --
 1 file changed, 2 deletions(-)
fs/bcachefs/journal_reclaim.c +0 -2
index 5d1547aa118a..59d8c9fa9b07 100644
@@ -624,8 +624,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]);
Signature · 1 line
2.48.1
#1 lore raw
Quoted 1 line · Alan Huang

Applied

Quoted 20 lines
---
 fs/bcachefs/journal_reclaim.c | 2 --
 1 file changed, 2 deletions(-)
fs/bcachefs/journal_reclaim.c +0 -2
index 5d1547aa118a..59d8c9fa9b07 100644
@@ -624,8 +624,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]);
Signature · 1 line
2.48.1