f2fs: fix the f2fs_file_write_iter tracepoint
authorEric Biggers <ebiggers@google.com>
Fri, 16 Jul 2021 14:39:15 +0000 (09:39 -0500)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 4 Dec 2021 18:53:35 +0000 (10:53 -0800)
commitccf7cf92373d1a53166582013430b3b9c05a6ba2
tree5fc0e51d3e936b335ac74c0beb2715e895f9111b
parentd4dd19ec1ea0cf6532d65709325c42b1398614a8
f2fs: fix the f2fs_file_write_iter tracepoint

Pass in the original position and count rather than the position and
count that were updated by the write.  Also use the correct types for
all arguments, in particular the file offset which was being truncated
to 32 bits on 32-bit platforms.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c
include/trace/events/f2fs.h