]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: kill meaningless variable 'zero'
authorEryu Guan <eguan@redhat.com>
Mon, 18 Sep 2017 18:38:58 +0000 (11:38 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 26 Sep 2017 01:22:30 +0000 (18:22 -0700)
commit6a5b6e750055867715ca9482b09e12ac02633048
tree1abb1c2b61dbd13e4877463136e92a3843d3b0c0
parent946953fb47add492bfbe69137ecdde3e19e4a67b
xfs: kill meaningless variable 'zero'

In xfs_file_aio_write_checks(), variable 'zero' is there only to
satisfy xfs_zero_eof(), the result of it is ignored. Now, with
iomap_zero_range() based xfs_zero_eof(), we can safely pass NULL as
the last param of it and kill 'zero'.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
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/xfs/xfs_file.c