summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/journal_io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-03-11 09:31:03 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-14 21:02:16 -0400
commita2e9e6874612582367be674e4d961de2ec8a9d05 (patch)
treefa6c3af0f01c7480780c5f000149e4c967390cc4 /fs/bcachefs/journal_io.c
parentbcachefs: Use max() to improve gen_after() (diff)
downloadlinux-a2e9e6874612582367be674e4d961de2ec8a9d05.tar.gz
linux-a2e9e6874612582367be674e4d961de2ec8a9d05.zip
bcachefs: Kill a bit of dead code
Found with CC=clang W=1 Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_io.c')
-rw-r--r--fs/bcachefs/journal_io.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c
index 331c9d762439..cf2700b06d58 100644
--- a/fs/bcachefs/journal_io.c
+++ b/fs/bcachefs/journal_io.c
@@ -1609,11 +1609,6 @@ static void journal_buf_realloc(struct journal *j, struct journal_buf *buf)
kvfree(new_buf);
}
-static inline struct journal_buf *journal_last_unwritten_buf(struct journal *j)
-{
- return j->buf + (journal_last_unwritten_seq(j) & JOURNAL_BUF_MASK);
-}
-
static CLOSURE_CALLBACK(journal_write_done)
{
closure_type(w, struct journal_buf, io);