diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-14 17:36:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-14 17:36:47 -0400 |
commit | 4142e0d1def2c0176c27fd2e810243045a62eb6d (patch) | |
tree | a21f76fafcd7609419a3ce610d8b9360748ccd76 /drivers | |
parent | 33f1de69312432baecb997a570b7d77c4d02d1ed (diff) | |
parent | 2daea67e966dc0c42067ebea015ddac6834cef88 (diff) |
Merge branch 'osync_cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6
* 'osync_cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6:
fsync: wait for data writeout completion before calling ->fsync
vfs: Remove generic_osync_inode() and sync_page_range{_nolock}()
fat: Opencode sync_page_range_nolock()
pohmelfs: Use new syncing helper
xfs: Convert sync_page_range() to simple filemap_write_and_wait_range()
ocfs2: Update syncing after splicing to match generic version
ntfs: Use new syncing helpers and update comments
ext4: Remove syncing logic from ext4_file_write
ext3: Remove syncing logic from ext3_file_write
ext2: Update comment about generic_osync_inode
vfs: Introduce new helpers for syncing after writing to O_SYNC file or IS_SYNC inode
vfs: Rename generic_file_aio_write_nolock
ocfs2: Use __generic_file_aio_write instead of generic_file_aio_write_nolock
pohmelfs: Use __generic_file_aio_write instead of generic_file_aio_write_nolock
vfs: Remove syncing from generic_file_direct_write() and generic_file_buffered_write()
vfs: Export __generic_file_aio_write() and add some comments
vfs: Introduce filemap_fdatawait_range
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/raw.c | 2 | ||||
-rw-r--r-- | drivers/staging/pohmelfs/inode.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c index 05f9d18b9361..40268db02e22 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c | |||
@@ -246,7 +246,7 @@ static const struct file_operations raw_fops = { | |||
246 | .read = do_sync_read, | 246 | .read = do_sync_read, |
247 | .aio_read = generic_file_aio_read, | 247 | .aio_read = generic_file_aio_read, |
248 | .write = do_sync_write, | 248 | .write = do_sync_write, |
249 | .aio_write = generic_file_aio_write_nolock, | 249 | .aio_write = blkdev_aio_write, |
250 | .open = raw_open, | 250 | .open = raw_open, |
251 | .release= raw_release, | 251 | .release= raw_release, |
252 | .ioctl = raw_ioctl, | 252 | .ioctl = raw_ioctl, |
diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c index e63c9bea6c54..d004a9ddddbc 100644 --- a/drivers/staging/pohmelfs/inode.c +++ b/drivers/staging/pohmelfs/inode.c | |||
@@ -921,16 +921,16 @@ ssize_t pohmelfs_write(struct file *file, const char __user *buf, | |||
921 | if (ret) | 921 | if (ret) |
922 | goto err_out_unlock; | 922 | goto err_out_unlock; |
923 | 923 | ||
924 | ret = generic_file_aio_write_nolock(&kiocb, &iov, 1, pos); | 924 | ret = __generic_file_aio_write(&kiocb, &iov, 1, &kiocb.ki_pos); |
925 | *ppos = kiocb.ki_pos; | 925 | *ppos = kiocb.ki_pos; |
926 | 926 | ||
927 | mutex_unlock(&inode->i_mutex); | 927 | mutex_unlock(&inode->i_mutex); |
928 | WARN_ON(ret < 0); | 928 | WARN_ON(ret < 0); |
929 | 929 | ||
930 | if (ret > 0 && ((file->f_flags & O_SYNC) || IS_SYNC(inode))) { | 930 | if (ret > 0) { |
931 | ssize_t err; | 931 | ssize_t err; |
932 | 932 | ||
933 | err = sync_page_range(inode, mapping, pos, ret); | 933 | err = generic_write_sync(file, pos, ret); |
934 | if (err < 0) | 934 | if (err < 0) |
935 | ret = err; | 935 | ret = err; |
936 | WARN_ON(ret < 0); | 936 | WARN_ON(ret < 0); |