summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_file.c
diff options
context:
space:
mode:
authorEryu Guan2017-09-18 20:39:23 +0200
committerDarrick J. Wong2017-09-26 03:22:30 +0200
commitd20a5e3851969fa685f118a80e4df670255a4e8d (patch)
treeb678068255d0b42b544e39a95166f41795a5993c /fs/xfs/xfs_file.c
parentxfs: kill meaningless variable 'zero' (diff)
downloadkernel-qcow2-linux-d20a5e3851969fa685f118a80e4df670255a4e8d.tar.gz
kernel-qcow2-linux-d20a5e3851969fa685f118a80e4df670255a4e8d.tar.xz
kernel-qcow2-linux-d20a5e3851969fa685f118a80e4df670255a4e8d.zip
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 7bb41db3ea16 ("xfs: handle 64-bit length in xfs_iozero"), and found by code inspection. 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>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r--fs/xfs/xfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 261d83f1db76..350b6d43ba23 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -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