diff options
| author | Steven Rostedt <rostedt@goodmis.org> | 2026-06-29 11:32:44 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-06-29 11:32:44 -0400 |
| commit | a13905ac604cfd28fbda0815da16127bd4069bbe (patch) | |
| tree | 81c6504a0aae2c7d7ea118c7aff71ec943035ca7 /fs/ext4/fast_commit.c | |
| parent | 56ece2fce5c00f577d92a376ba5dc4a2aa15925d (diff) | |
| parent | c35eb77a67515d4201bc91294f40761591f43bbd (diff) | |
| download | linux-next-a13905ac604cfd28fbda0815da16127bd4069bbe.tar.gz linux-next-a13905ac604cfd28fbda0815da16127bd4069bbe.zip | |
Merge tools/for-next
Diffstat (limited to 'fs/ext4/fast_commit.c')
| -rw-r--r-- | fs/ext4/fast_commit.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/ext4/fast_commit.c b/fs/ext4/fast_commit.c index b3c22636251d..5773b85e43cb 100644 --- a/fs/ext4/fast_commit.c +++ b/fs/ext4/fast_commit.c @@ -184,8 +184,11 @@ #include <trace/events/ext4.h> static struct kmem_cache *ext4_fc_dentry_cachep; -static void ext4_end_buffer_io_sync(struct buffer_head *bh, int uptodate) +static void ext4_end_buffer_io_sync(struct bio *bio) { + struct buffer_head *bh; + bool uptodate = bio_endio_bh(bio, &bh); + BUFFER_TRACE(bh, ""); if (uptodate) { ext4_debug("%s: Block %lld up-to-date", @@ -659,8 +662,7 @@ static void ext4_fc_submit_bh(struct super_block *sb, bool is_tail) lock_buffer(bh); set_buffer_dirty(bh); set_buffer_uptodate(bh); - bh->b_end_io = ext4_end_buffer_io_sync; - submit_bh(REQ_OP_WRITE | write_flags, bh); + bh_submit(bh, REQ_OP_WRITE | write_flags, ext4_end_buffer_io_sync); EXT4_SB(sb)->s_fc_bh = NULL; } |
