Commit 3091d4c0 authored by Ming Lei's avatar Ming Lei Committed by Greg Kroah-Hartman
Browse files

loop: add file_start_write() and file_end_write()



[ Upstream commit 39d86db3 ]

file_start_write() and file_end_write() should be added around ->write_iter().

Recently we switch to ->write_iter() from vfs_iter_write(), and the
implied file_start_write() and file_end_write() are lost.

Also we never add them for dio code path, so add them back for covering
both.

Cc: Jeff Moyer <jmoyer@redhat.com>
Fixes: f2fed441 ("loop: stop using vfs_iter_{read,write} for buffered I/O")
Fixes: bc07c10a ("block: loop: support DIO & AIO")
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250527153405.837216-1-ming.lei@redhat.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4bd30962
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment