]> git.baikalelectronics.ru Git - kernel.git/commit
fs: Add async write file modification handling.
authorStefan Roesch <shr@fb.com>
Thu, 23 Jun 2022 17:51:53 +0000 (10:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:32 +0000 (18:39 -0600)
commitee1fac9de093b31ded81eec538830a5c2eaf4297
tree88766f071172355cb09a12fd992f0d0d22f4a713
parent1ed6938bcc1974a5f35d9552f9346cd08243750e
fs: Add async write file modification handling.

This adds a file_modified_async() function to return -EAGAIN if the
request either requires to remove privileges or needs to update the file
modification time. This is required for async buffered writes, so the
request gets handled in the io worker of io-uring.

Signed-off-by: Stefan Roesch <shr@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20220623175157.1715274-11-shr@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/inode.c
include/linux/fs.h