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_vnodeops.h | |
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_vnodeops.h')
-rw-r--r-- | fs/xfs/xfs_vnodeops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_vnodeops.h b/fs/xfs/xfs_vnodeops.h index 91a03fa3814f..5163022d9808 100644 --- a/fs/xfs/xfs_vnodeops.h +++ b/fs/xfs/xfs_vnodeops.h | |||
@@ -49,6 +49,7 @@ int xfs_attr_remove(struct xfs_inode *dp, const unsigned char *name, int flags); | |||
49 | int xfs_attr_list(struct xfs_inode *dp, char *buffer, int bufsize, | 49 | int xfs_attr_list(struct xfs_inode *dp, char *buffer, int bufsize, |
50 | int flags, struct attrlist_cursor_kern *cursor); | 50 | int flags, struct attrlist_cursor_kern *cursor); |
51 | 51 | ||
52 | int xfs_iozero(struct xfs_inode *, loff_t, size_t); | ||
52 | int xfs_zero_eof(struct xfs_inode *, xfs_off_t, xfs_fsize_t); | 53 | int xfs_zero_eof(struct xfs_inode *, xfs_off_t, xfs_fsize_t); |
53 | int xfs_free_eofblocks(struct xfs_mount *, struct xfs_inode *, bool); | 54 | int xfs_free_eofblocks(struct xfs_mount *, struct xfs_inode *, bool); |
54 | 55 | ||