diff options
| author | Al Viro <[email protected]> | 2015-04-08 21:00:32 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2015-04-09 11:18:48 +0000 |
| commit | 64b4e2526d1cf6e6a4db6213d6e2b6e6ab59479a (patch) | |
| tree | a49bfdd4b0eb85b45ce8fd11ba72f6b0e6145a51 /net/switchdev/switchdev.c | |
| parent | ocfs2_file_write_iter: keep return value and current position update in sync (diff) | |
| download | kernel-64b4e2526d1cf6e6a4db6213d6e2b6e6ab59479a.tar.gz kernel-64b4e2526d1cf6e6a4db6213d6e2b6e6ab59479a.zip | |
ocfs2: _really_ sync the right range
"ocfs2 syncs the wrong range" had been broken; prior to it the
code was doing the wrong thing in case of O_APPEND, all right,
but _after_ it we were syncing the wrong range in 100% cases.
*ppos, aka iocb->ki_pos is incremented prior to that point,
so we are always doing sync on the area _after_ the one we'd
written to.
Spotted by Joseph Qi <[email protected]> back in January;
unfortunately, I'd missed his mail back then ;-/
Cc: [email protected]
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
