diff options
| author | Bart Van Assche <[email protected]> | 2022-07-14 18:07:13 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-07-14 18:14:32 +0000 |
| commit | 1420c4a549bf28ffddbed827d61fb3d4d2132ddb (patch) | |
| tree | ff6edde84622f984014bbf5f4f91b2ffa476b995 /fs/ext4/fast_commit.c | |
| parent | fs/buffer: Use the new blk_opf_t type (diff) | |
| download | kernel-1420c4a549bf28ffddbed827d61fb3d4d2132ddb.tar.gz kernel-1420c4a549bf28ffddbed827d61fb3d4d2132ddb.zip | |
fs/buffer: Combine two submit_bh() and ll_rw_block() arguments
Both submit_bh() and ll_rw_block() accept a request operation type and
request flags as their first two arguments. Micro-optimize these two
functions by combining these first two arguments into a single argument.
This patch does not change the behavior of any of the modified code.
Cc: Alexander Viro <[email protected]>
Cc: Jan Kara <[email protected]>
Acked-by: Song Liu <[email protected]> (for the md changes)
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
| -rw-r--r-- | fs/ext4/fast_commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/fast_commit.c b/fs/ext4/fast_commit.c index 795a60ad1897..0df5482c6c1c 100644 --- a/fs/ext4/fast_commit.c +++ b/fs/ext4/fast_commit.c @@ -668,7 +668,7 @@ static void ext4_fc_submit_bh(struct super_block *sb, bool is_tail) 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); + submit_bh(REQ_OP_WRITE | write_flags, bh); EXT4_SB(sb)->s_fc_bh = NULL; } |
