aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorAndrew Dahl <adahl@sgi.com>2012-11-14 13:52:26 -0500
committerBen Myers <bpm@sgi.com>2012-11-14 16:11:52 -0500
commitd6638ae244f6323fcdf85e72eb4a5af6f6212893 (patch)
treec401a071e2519461c7c70a8a1f41c48196e4679f /fs/xfs
parentf5b8911b67eb4f15d95d5e5324d376d4a49d56e8 (diff)
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: Andrew Dahl <adahl@sgi.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_vnodeops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index de3702a57e55..46a7a5de5d6d 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -2188,7 +2188,7 @@ xfs_change_file_space(
2188 case XFS_IOC_ZERO_RANGE: 2188 case XFS_IOC_ZERO_RANGE:
2189 prealloc_type |= XFS_BMAPI_CONVERT; 2189 prealloc_type |= XFS_BMAPI_CONVERT;
2190 end = round_down(startoffset + bf->l_len, PAGE_SIZE) - 1; 2190 end = round_down(startoffset + bf->l_len, PAGE_SIZE) - 1;
2191 if (startoffset > end) 2191 if (startoffset <= end)
2192 truncate_pagecache_range(VFS_I(ip), startoffset, end); 2192 truncate_pagecache_range(VFS_I(ip), startoffset, end);
2193 /* FALLTHRU */ 2193 /* FALLTHRU */
2194 case XFS_IOC_RESVSP: 2194 case XFS_IOC_RESVSP: