Skip to content

Commit 99fc33d

Browse files
Long Licmaiolino
authored andcommitted
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent efebe42 commit 99fc33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_aops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ xfs_end_ioend(
131131
error = xfs_iomap_write_unwritten(ip, offset, size, false);
132132

133133
if (!error && xfs_ioend_is_append(ioend))
134-
error = xfs_setfilesize(ip, ioend->io_offset, ioend->io_size);
134+
error = xfs_setfilesize(ip, offset, size);
135135
done:
136136
iomap_finish_ioends(ioend, error);
137137
memalloc_nofs_restore(nofs_flag);

0 commit comments

Comments
 (0)