Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d20a5e38 authored by Eryu Guan's avatar Eryu Guan Committed by Darrick J. Wong
Browse files

xfs: report zeroed or not correctly in xfs_zero_range()



The 'did_zero' param of xfs_zero_range() was not passed to
iomap_zero_range() correctly. This was introduced by commit
7bb41db3 ("xfs: handle 64-bit length in xfs_iozero"), and found
by code inspection.

Signed-off-by: default avatarEryu Guan <eguan@redhat.com>
Reviewed-by: default avatarCarlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 64671baf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ xfs_zero_range(
	xfs_off_t		count,
	bool			*did_zero)
{
	return iomap_zero_range(VFS_I(ip), pos, count, NULL, &xfs_iomap_ops);
	return iomap_zero_range(VFS_I(ip), pos, count, did_zero, &xfs_iomap_ops);
}

int