[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240226030018.98875-1-jiapeng.chong@linux.alibaba.com>
Date: Mon, 26 Feb 2024 11:00:18 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: kent.overstreet@...ux.dev
Cc: bfoster@...hat.com,
linux-bcachefs@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH] bcachefs: Remove unused function
The function are defined in the journal_io.c file, but not called
elsewhere, so delete the unused function.
fs/bcachefs/journal_io.c:1592:35: warning: unused function 'journal_last_unwritten_buf'.
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8315
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
fs/bcachefs/journal_io.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c
index f9e5b100a9da..ee5c53cc58d0 100644
--- a/fs/bcachefs/journal_io.c
+++ b/fs/bcachefs/journal_io.c
@@ -1589,11 +1589,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);
--
2.20.1.7.g153144c
Powered by blists - more mailing lists