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

Commit d6638ae2 authored by Andrew Dahl's avatar Andrew Dahl Committed by Ben Myers
Browse files

xfs: reverse the check on XFS_IOC_ZERO_RANGE



Reversing the check on XFS_IOC_ZERO_RANGE.

Range should be zeroed if the start is less than or equal to the end.

Signed-off-by: default avatarAndrew Dahl <adahl@sgi.com>
Reviewed-by: default avatarMark Tinguely <tinguely@sgi.com>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent f5b8911b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2188,7 +2188,7 @@ xfs_change_file_space(
	case XFS_IOC_ZERO_RANGE:
		prealloc_type |= XFS_BMAPI_CONVERT;
		end = round_down(startoffset + bf->l_len, PAGE_SIZE) - 1;
		if (startoffset > end)
		if (startoffset <= end)
			truncate_pagecache_range(VFS_I(ip), startoffset, end);
		/* FALLTHRU */
	case XFS_IOC_RESVSP: