diff options
author | Jan Kara <jack@suse.cz> | 2009-08-18 16:18:20 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2009-09-14 17:08:15 +0200 |
commit | c7b50db21fe8c295092518e224d60b95e69da3b0 (patch) | |
tree | ed73757b475462c4cfccdcf61d95929f4cb32637 /fs/ocfs2/file.c | |
parent | vfs: Export __generic_file_aio_write() and add some comments (diff) | |
download | linux-c7b50db21fe8c295092518e224d60b95e69da3b0.tar.xz linux-c7b50db21fe8c295092518e224d60b95e69da3b0.zip |
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: ocfs2-devel@oss.oracle.com
CC: Joel Becker <joel.becker@oracle.com>
CC: Felix Blyakher <felixb@sgi.com>
CC: xfs@oss.sgi.com
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ocfs2/file.c')
0 files changed, 0 insertions, 0 deletions