iomap: remove unneeded variable in iomap_dio_rw()
authorJohannes Thumshirn <jthumshirn@suse.de>
Tue, 26 Nov 2019 17:28:47 +0000 (09:28 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 26 Nov 2019 17:28:47 +0000 (09:28 -0800)
commit88cfd30e188fcf6fd8304586c936a6f22fb665e5
treece91761c343bad36b9b1c26b689167d972f927be
parentf550ee9b85fd47f85e31965b908a7c1044c531aa
iomap: remove unneeded variable in iomap_dio_rw()

The 'start' variable indicates the start of a filemap and is set to the
iocb's position, which we have already cached as 'pos', upon function
entry.

'pos' is used as a cursor indicating the current position and updated
later in iomap_dio_rw(), but not before the last use of 'start'.

Remove 'start' as it's synonym for 'pos' before we're entering the loop
calling iomapp_apply().

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap/direct-io.c