mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
[regression] ocfs2: do *not* increment ->ki_pos twice
generic_file_direct_write() already does that. Broken by "ocfs2: do not fallback to buffer I/O write if appending" Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
deeb8525f9
commit
cf1b5ea1c5
|
|
@ -2394,7 +2394,6 @@ static ssize_t ocfs2_file_write_iter(struct kiocb *iocb,
|
|||
/*
|
||||
* for completing the rest of the request.
|
||||
*/
|
||||
*ppos += written;
|
||||
count -= written;
|
||||
written_buffered = generic_perform_write(file, from, *ppos);
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user