Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netfs: Implement buffered writes through netfs_file_write_iter()
Institute a netfs write helper, netfs_file_write_iter(), to be pointed at by the network filesystem ->write_iter() call. Make it handled buffered writes by copying the data into the pagecache and creating a dirty regions to represent contiguous spans of compatible data. Dirty regions are considered compatible, and thus mergeable, if they are part of the same flush group, have the same fscache requirements and have the same O_SYNC/O_DSYNC characteristics - plus any constraints the netfs wishes to add. Signed-off-by: David Howells <dhowells@redhat.com>
- Loading branch information
Showing
6 changed files
with
958 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.