diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2026-05-28 20:31:16 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-06-04 11:28:06 +0300 |
| commit | df21e33ff9c4ab20eb2a98273c2d9fed300aba26 (patch) | |
| tree | 9316a55d1909cb671b6120af0d626f7efe845b6e | |
| parent | 4b7381326424809577eb43bf635ea1d43a095d89 (diff) | |
| download | linux-df21e33ff9c4ab20eb2a98273c2d9fed300aba26.tar.xz | |
buffer: Remove mark_buffer_async_write_endio()
All callers of mark_buffer_async_write_endio() pass
end_buffer_async_write, so we can inline mark_buffer_async_write_endio()
into mark_buffer_async_write() and just call that instead.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://patch.msgid.link/20260528173150.1093780-4-willy@infradead.org
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
| -rw-r--r-- | fs/buffer.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index ea926963529e..4dcce64ef006 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -443,16 +443,10 @@ static void mark_buffer_async_read(struct buffer_head *bh) set_buffer_async_read(bh); } -static void mark_buffer_async_write_endio(struct buffer_head *bh, - bh_end_io_t *handler) -{ - bh->b_end_io = handler; - set_buffer_async_write(bh); -} - void mark_buffer_async_write(struct buffer_head *bh) { - mark_buffer_async_write_endio(bh, end_buffer_async_write); + bh->b_end_io = end_buffer_async_write; + set_buffer_async_write(bh); } EXPORT_SYMBOL(mark_buffer_async_write); @@ -1903,8 +1897,7 @@ int __block_write_full_folio(struct inode *inode, struct folio *folio, continue; } if (test_clear_buffer_dirty(bh)) { - mark_buffer_async_write_endio(bh, - end_buffer_async_write); + mark_buffer_async_write(bh); } else { unlock_buffer(bh); } @@ -1958,8 +1951,7 @@ recover: if (buffer_mapped(bh) && buffer_dirty(bh) && !buffer_delay(bh)) { lock_buffer(bh); - mark_buffer_async_write_endio(bh, - end_buffer_async_write); + mark_buffer_async_write(bh); } else { /* * The buffer may have been set dirty during |
