[3/9] bcachefs: Modify mismatched function name

Message ID 20230914090457.32325-4-jiapeng.chong@linux.alibaba.com
State New
Headers
Series [1/9] bcachefs: Modify mismatched function name |

Commit Message

Jiapeng Chong Sept. 14, 2023, 9:04 a.m. UTC
  No functional modification involved.

fs/bcachefs/io.c:1817: warning: expecting prototype for bch_write(). Prototype was for bch2_write() instead.
fs/bcachefs/io.c:747: warning: expecting prototype for bch_write_index(). Prototype was for __bch2_write_index() instead.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6578
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 fs/bcachefs/io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c
index 3c614c864b6e..cd14a6d87e2b 100644
--- a/fs/bcachefs/io.c
+++ b/fs/bcachefs/io.c
@@ -741,7 +741,7 @@  static noinline int bch2_write_drop_io_error_ptrs(struct bch_write_op *op)
 }
 
 /**
- * bch_write_index - after a write, update index to point to new data
+ * __bch2_write_index - after a write, update index to point to new data
  */
 static void __bch2_write_index(struct bch_write_op *op)
 {
@@ -1798,7 +1798,7 @@  static void bch2_write_data_inline(struct bch_write_op *op, unsigned data_len)
 }
 
 /**
- * bch_write - handle a write to a cache device or flash only volume
+ * bch2_write - handle a write to a cache device or flash only volume
  *
  * This is the starting point for any data to end up in a cache device; it could
  * be from a normal write, or a writeback write, or a write to a flash only