diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-11-28 23:26:33 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-11-29 15:21:46 -0500 |
commit | ef9d873344ff9f5084eacb9f3735982314dfda9e (patch) | |
tree | 5ef54dd33ac54de24239fecf36c0c960f6f70972 /fs/xfs/xfs_file.c | |
parent | 7c4cebe8e02dd0b0e655605442bbe9268db9ed4f (diff) |
xfs: byte range granularity for XFS_IOC_ZERO_RANGE
XFS_IOC_ZERO_RANGE simply does not work properly for non page cache
aligned ranges. Neither test 242 or 290 exercise this correctly, so
the behaviour is completely busted even though the tests pass.
Fix it to support full byte range granularity as was originally
intended for this ioctl.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 400b187595bb..67284edb84d7 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -86,7 +86,7 @@ xfs_rw_ilock_demote( | |||
86 | * valid before the operation, it will be read from disk before | 86 | * valid before the operation, it will be read from disk before |
87 | * being partially zeroed. | 87 | * being partially zeroed. |
88 | */ | 88 | */ |
89 | STATIC int | 89 | int |
90 | xfs_iozero( | 90 | xfs_iozero( |
91 | struct xfs_inode *ip, /* inode */ | 91 | struct xfs_inode *ip, /* inode */ |
92 | loff_t pos, /* offset in file */ | 92 | loff_t pos, /* offset in file */ |