mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
xfs: clean up xfs_end_ioend() to reuse local variables
Use already initialized local variables 'offset' and 'size' instead of accessing ioend members directly in xfs_setfilesize() call. This is just a code cleanup with no functional changes. Signed-off-by: Long Li <leo.lilong@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
@@ -131,7 +131,7 @@ xfs_end_ioend(
|
||||
error = xfs_iomap_write_unwritten(ip, offset, size, false);
|
||||
|
||||
if (!error && xfs_ioend_is_append(ioend))
|
||||
error = xfs_setfilesize(ip, ioend->io_offset, ioend->io_size);
|
||||
error = xfs_setfilesize(ip, offset, size);
|
||||
done:
|
||||
iomap_finish_ioends(ioend, error);
|
||||
memalloc_nofs_restore(nofs_flag);
|
||||
|
||||
Reference in New Issue
Block a user