Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vfs: Remove syncing from generic_file_direct_write() and generic_file…
…_buffered_write() generic_file_direct_write() and generic_file_buffered_write() called generic_osync_inode() if it was called on O_SYNC file or IS_SYNC inode. But this is superfluous since generic_file_aio_write() does the syncing as well. Also XFS and OCFS2 which call these functions directly handle syncing themselves. So let's have a single place where syncing happens: generic_file_aio_write(). We slightly change the behavior by syncing only the range of file to which the write happened for buffered writes but that should be all that is required. CC: [email protected] CC: Joel Becker <[email protected]> CC: Felix Blyakher <[email protected]> CC: [email protected] Signed-off-by: Jan Kara <[email protected]>
- Loading branch information