aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2011-07-08 08:34:30 -0400
committerChristoph Hellwig <hch@lst.de>2011-07-08 08:34:30 -0400
commit857b9778d86ccba7d7b42c9d8aeecde794ec8a6b (patch)
tree8e336f66e4e712da3f6d3f9a2f87bd2e0a8ca781 /fs/xfs/xfs_inode.h
parent681b120018e3c7e2680c93e8188c5ee34215df2f (diff)
xfs: kill xfs_itruncate_start
xfs_itruncate_start is a rather length wrapper that evaluates to a call to xfs_ioend_wait and xfs_tosspages, and only has two callers. Instead of using the complicated checks left over from IRIX where we can to truncate the pagecache just call xfs_tosspages (aka truncate_inode_pages) directly as we want to get rid of all data after i_size, and truncate_inode_pages handles incorrect alignments and too large offsets just fine. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r--fs/xfs/xfs_inode.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index 964cfea77686..6efd471c8724 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -458,16 +458,6 @@ static inline void xfs_ifunlock(xfs_inode_t *ip)
458extern struct lock_class_key xfs_iolock_reclaimable; 458extern struct lock_class_key xfs_iolock_reclaimable;
459 459
460/* 460/*
461 * Flags for xfs_itruncate_start().
462 */
463#define XFS_ITRUNC_DEFINITE 0x1
464#define XFS_ITRUNC_MAYBE 0x2
465
466#define XFS_ITRUNC_FLAGS \
467 { XFS_ITRUNC_DEFINITE, "DEFINITE" }, \
468 { XFS_ITRUNC_MAYBE, "MAYBE" }
469
470/*
471 * For multiple groups support: if S_ISGID bit is set in the parent 461 * For multiple groups support: if S_ISGID bit is set in the parent
472 * directory, group of new file is set to that of the parent, and 462 * directory, group of new file is set to that of the parent, and
473 * new subdirectory gets S_ISGID bit from parent. 463 * new subdirectory gets S_ISGID bit from parent.
@@ -501,7 +491,6 @@ uint xfs_ip2xflags(struct xfs_inode *);
501uint xfs_dic2xflags(struct xfs_dinode *); 491uint xfs_dic2xflags(struct xfs_dinode *);
502int xfs_ifree(struct xfs_trans *, xfs_inode_t *, 492int xfs_ifree(struct xfs_trans *, xfs_inode_t *,
503 struct xfs_bmap_free *); 493 struct xfs_bmap_free *);
504int xfs_itruncate_start(xfs_inode_t *, uint, xfs_fsize_t);
505int xfs_itruncate_finish(struct xfs_trans **, xfs_inode_t *, 494int xfs_itruncate_finish(struct xfs_trans **, xfs_inode_t *,
506 xfs_fsize_t, int, int); 495 xfs_fsize_t, int, int);
507int xfs_iunlink(struct xfs_trans *, xfs_inode_t *); 496int xfs_iunlink(struct xfs_trans *, xfs_inode_t *);