From 50c50a9cb07a24b320d37cc2e9f2bead346dd559 Mon Sep 17 00:00:00 2001 From: Andrew Dahl Date: Wed, 14 Nov 2012 12:52:26 -0600 Subject: [PATCH] --- yaml --- r: 339415 b: refs/heads/master c: d6638ae244f6323fcdf85e72eb4a5af6f6212893 h: refs/heads/master i: 339413: 1ff932c584e40144f188f04399eacad5a693958e 339411: 4dbe2c68ec649d34b28c2564f0d126ea2a4892f9 339407: 5692e407d4a0fa7f59d18625c6c11b127e7c7c35 v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_vnodeops.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index a6082ebdc3e4..8e08d45c42e2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f5b8911b67eb4f15d95d5e5324d376d4a49d56e8 +refs/heads/master: d6638ae244f6323fcdf85e72eb4a5af6f6212893 diff --git a/trunk/fs/xfs/xfs_vnodeops.c b/trunk/fs/xfs/xfs_vnodeops.c index de3702a57e55..46a7a5de5d6d 100644 --- a/trunk/fs/xfs/xfs_vnodeops.c +++ b/trunk/fs/xfs/xfs_vnodeops.c @@ -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: