diff options
author | Theodore Ts'o <tytso@mit.edu> | 2013-04-03 16:39:17 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-03 16:39:17 (GMT) |
commit | 74d553aad7926ed05e05d9d5cff516a7b31375fc (patch) | |
tree | b18222cb547c2ce4e18a9538bc28f92e2978c600 /include/trace/events/ext4.h | |
parent | 8cde7ad17e4f4ff8d12ff60dd09c0a291cb0b61c (diff) | |
download | linux-74d553aad7926ed05e05d9d5cff516a7b31375fc.tar.xz |
ext4: collapse handling of data=ordered and data=writeback codepaths
The only difference between how we handle data=ordered and
data=writeback is a single call to ext4_jbd2_file_inode(). Eliminate
code duplication by factoring out redundant the code paths.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Diffstat (limited to 'include/trace/events/ext4.h')
-rw-r--r-- | include/trace/events/ext4.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h index 4ee4710..58459b7 100644 --- a/include/trace/events/ext4.h +++ b/include/trace/events/ext4.h @@ -257,15 +257,7 @@ DECLARE_EVENT_CLASS(ext4__write_end, __entry->pos, __entry->len, __entry->copied) ); -DEFINE_EVENT(ext4__write_end, ext4_ordered_write_end, - - TP_PROTO(struct inode *inode, loff_t pos, unsigned int len, - unsigned int copied), - - TP_ARGS(inode, pos, len, copied) -); - -DEFINE_EVENT(ext4__write_end, ext4_writeback_write_end, +DEFINE_EVENT(ext4__write_end, ext4_write_end, TP_PROTO(struct inode *inode, loff_t pos, unsigned int len, unsigned int copied), |