diff options
author | Christoph Hellwig <hch@lst.de> | 2011-07-08 08:34:30 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2011-07-08 08:34:30 -0400 |
commit | 857b9778d86ccba7d7b42c9d8aeecde794ec8a6b (patch) | |
tree | 8e336f66e4e712da3f6d3f9a2f87bd2e0a8ca781 /fs/xfs/linux-2.6/xfs_trace.h | |
parent | 681b120018e3c7e2680c93e8188c5ee34215df2f (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/linux-2.6/xfs_trace.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_trace.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/fs/xfs/linux-2.6/xfs_trace.h b/fs/xfs/linux-2.6/xfs_trace.h index d48b7a579ae1..cac41e423451 100644 --- a/fs/xfs/linux-2.6/xfs_trace.h +++ b/fs/xfs/linux-2.6/xfs_trace.h | |||
@@ -1029,40 +1029,6 @@ DEFINE_SIMPLE_IO_EVENT(xfs_delalloc_enospc); | |||
1029 | DEFINE_SIMPLE_IO_EVENT(xfs_unwritten_convert); | 1029 | DEFINE_SIMPLE_IO_EVENT(xfs_unwritten_convert); |
1030 | DEFINE_SIMPLE_IO_EVENT(xfs_get_blocks_notfound); | 1030 | DEFINE_SIMPLE_IO_EVENT(xfs_get_blocks_notfound); |
1031 | 1031 | ||
1032 | |||
1033 | TRACE_EVENT(xfs_itruncate_start, | ||
1034 | TP_PROTO(struct xfs_inode *ip, xfs_fsize_t new_size, int flag, | ||
1035 | xfs_off_t toss_start, xfs_off_t toss_finish), | ||
1036 | TP_ARGS(ip, new_size, flag, toss_start, toss_finish), | ||
1037 | TP_STRUCT__entry( | ||
1038 | __field(dev_t, dev) | ||
1039 | __field(xfs_ino_t, ino) | ||
1040 | __field(xfs_fsize_t, size) | ||
1041 | __field(xfs_fsize_t, new_size) | ||
1042 | __field(xfs_off_t, toss_start) | ||
1043 | __field(xfs_off_t, toss_finish) | ||
1044 | __field(int, flag) | ||
1045 | ), | ||
1046 | TP_fast_assign( | ||
1047 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | ||
1048 | __entry->ino = ip->i_ino; | ||
1049 | __entry->size = ip->i_d.di_size; | ||
1050 | __entry->new_size = new_size; | ||
1051 | __entry->toss_start = toss_start; | ||
1052 | __entry->toss_finish = toss_finish; | ||
1053 | __entry->flag = flag; | ||
1054 | ), | ||
1055 | TP_printk("dev %d:%d ino 0x%llx %s size 0x%llx new_size 0x%llx " | ||
1056 | "toss start 0x%llx toss finish 0x%llx", | ||
1057 | MAJOR(__entry->dev), MINOR(__entry->dev), | ||
1058 | __entry->ino, | ||
1059 | __print_flags(__entry->flag, "|", XFS_ITRUNC_FLAGS), | ||
1060 | __entry->size, | ||
1061 | __entry->new_size, | ||
1062 | __entry->toss_start, | ||
1063 | __entry->toss_finish) | ||
1064 | ); | ||
1065 | |||
1066 | DECLARE_EVENT_CLASS(xfs_itrunc_class, | 1032 | DECLARE_EVENT_CLASS(xfs_itrunc_class, |
1067 | TP_PROTO(struct xfs_inode *ip, xfs_fsize_t new_size), | 1033 | TP_PROTO(struct xfs_inode *ip, xfs_fsize_t new_size), |
1068 | TP_ARGS(ip, new_size), | 1034 | TP_ARGS(ip, new_size), |