]> git.hungrycats.org Git - linux/commit
fs: create kiocb_{start,end}_write() helpers
authorAmir Goldstein <amir73il@gmail.com>
Thu, 17 Aug 2023 14:13:33 +0000 (17:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Nov 2024 13:59:37 +0000 (14:59 +0100)
commitf83a32351efd6c6676fdabd5ab0e680500bc48e0
tree0b41338b222628d37974539521a2b03de5da2d79
parent955089c2403c5c75755629517d235ad99650a03c
fs: create kiocb_{start,end}_write() helpers

Commit ed0360bbab72b829437b67ebb2f9cfac19f59dfe upstream.

aio, io_uring, cachefiles and overlayfs, all open code an ugly variant
of file_{start,end}_write() to silence lockdep warnings.

Create helpers for this lockdep dance so we can use the helpers in all
the callers.

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Message-Id: <20230817141337.1025891-4-amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/fs.h