mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
committed by
Jens Axboe
parent
6a2aa5d85d
commit
66fa3cedf1
@@ -2390,6 +2390,7 @@ static inline void file_accessed(struct file *file)
|
||||
}
|
||||
|
||||
extern int file_modified(struct file *file);
|
||||
int kiocb_modified(struct kiocb *iocb);
|
||||
|
||||
int sync_inode_metadata(struct inode *inode, int wait);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user