diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-02-09 13:37:49 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-04-01 23:19:34 -0400 |
commit | fcacafd269adc88f41b68cb77a3f957a66563428 (patch) | |
tree | 5c2796dae6d890aad1ab1b4dc90f46ef53954a3a /fs | |
parent | 41fc56d573c35a212688b12b48af8c303f9bb6d2 (diff) |
kill the 5th argument of generic_file_buffered_write()
same story - it's &iocb->ki_pos in all cases
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/file.c | 3 | ||||
-rw-r--r-- | fs/ocfs2/file.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 09c7afe32e49..a798db5e5e39 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -978,8 +978,7 @@ retry_snap: | |||
978 | * can not run at the same time | 978 | * can not run at the same time |
979 | */ | 979 | */ |
980 | written = generic_file_buffered_write(iocb, iov, nr_segs, | 980 | written = generic_file_buffered_write(iocb, iov, nr_segs, |
981 | pos, &iocb->ki_pos, | 981 | pos, count, 0); |
982 | count, 0); | ||
983 | mutex_unlock(&inode->i_mutex); | 982 | mutex_unlock(&inode->i_mutex); |
984 | } | 983 | } |
985 | 984 | ||
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 51632c40e896..89099cce14fe 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -2383,7 +2383,7 @@ relock: | |||
2383 | } else { | 2383 | } else { |
2384 | current->backing_dev_info = file->f_mapping->backing_dev_info; | 2384 | current->backing_dev_info = file->f_mapping->backing_dev_info; |
2385 | written = generic_file_buffered_write(iocb, iov, nr_segs, *ppos, | 2385 | written = generic_file_buffered_write(iocb, iov, nr_segs, *ppos, |
2386 | ppos, count, 0); | 2386 | count, 0); |
2387 | current->backing_dev_info = NULL; | 2387 | current->backing_dev_info = NULL; |
2388 | } | 2388 | } |
2389 | 2389 | ||
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 64b48eade91d..175ce58fbfa3 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -738,7 +738,7 @@ xfs_file_buffered_aio_write( | |||
738 | write_retry: | 738 | write_retry: |
739 | trace_xfs_file_buffered_write(ip, count, iocb->ki_pos, 0); | 739 | trace_xfs_file_buffered_write(ip, count, iocb->ki_pos, 0); |
740 | ret = generic_file_buffered_write(iocb, iovp, nr_segs, | 740 | ret = generic_file_buffered_write(iocb, iovp, nr_segs, |
741 | pos, &iocb->ki_pos, count, 0); | 741 | pos, count, 0); |
742 | 742 | ||
743 | /* | 743 | /* |
744 | * If we just got an ENOSPC, try to write back all dirty inodes to | 744 | * If we just got an ENOSPC, try to write back all dirty inodes to |