iomap: micro optimize the ki_pos assignment in iomap_file_buffered_write
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Jul 2023 15:49:57 +0000 (08:49 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 17 Jul 2023 15:49:57 +0000 (08:49 -0700)
commitefa96cc99793bafe96bdbff6abab94d81472a32d
treef6027850be31d544b5f2dedcf823069235f1ba67
parent20c64ec83a9f779a750bbbcc1d07d065702313a5
iomap: micro optimize the ki_pos assignment in iomap_file_buffered_write

We have the new value for ki_pos right at hand in iter.pos, so assign
that instead of recalculating it from ret.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.harjani@gmail.com>
fs/iomap/buffered-io.c