summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-04-03 18:39:17 +0200
committerTheodore Ts'o <tytso@mit.edu>2013-04-03 18:39:17 +0200
commit74d553aad7926ed05e05d9d5cff516a7b31375fc (patch)
treeb18222cb547c2ce4e18a9538bc28f92e2978c600 /include
parentext4: fix big-endian bugs which could cause fs corruptions (diff)
downloadlinux-74d553aad7926ed05e05d9d5cff516a7b31375fc.tar.xz
linux-74d553aad7926ed05e05d9d5cff516a7b31375fc.zip
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')
-rw-r--r--include/trace/events/ext4.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h
index 4ee471003859..58459b785565 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),