diff options
author | Theodore Ts'o <tytso@mit.edu> | 2015-02-02 00:37:02 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-02-05 02:45:00 -0500 |
commit | a26f49926da938f47561f386be56a83dd37a496d (patch) | |
tree | 00d84a2406137aab5cc4b8ed290f962608558d70 /include/trace/events | |
parent | fe032c422c5ba562ba9c2d316f55e258e03259c6 (diff) |
ext4: add optimization for the lazytime mount option
Add an optimization for the MS_LAZYTIME mount option so that we will
opportunistically write out any inodes with the I_DIRTY_TIME flag set
in a particular inode table block when we need to update some inode in
that inode table block anyway.
Also add some temporary code so that we can set the lazytime mount
option without needing a modified /sbin/mount program which can set
MS_LAZYTIME. We can eventually make this go away once util-linux has
added support.
Google-Bug-Id: 18297052
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/trace/events')
-rw-r--r-- | include/trace/events/ext4.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h index 6cfb841fea7c..6e5abd6d38a2 100644 --- a/include/trace/events/ext4.h +++ b/include/trace/events/ext4.h | |||
@@ -73,6 +73,36 @@ struct extent_status; | |||
73 | { FALLOC_FL_ZERO_RANGE, "ZERO_RANGE"}) | 73 | { FALLOC_FL_ZERO_RANGE, "ZERO_RANGE"}) |
74 | 74 | ||
75 | 75 | ||
76 | TRACE_EVENT(ext4_other_inode_update_time, | ||
77 | TP_PROTO(struct inode *inode, ino_t orig_ino), | ||
78 | |||
79 | TP_ARGS(inode, orig_ino), | ||
80 | |||
81 | TP_STRUCT__entry( | ||
82 | __field( dev_t, dev ) | ||
83 | __field( ino_t, ino ) | ||
84 | __field( ino_t, orig_ino ) | ||
85 | __field( uid_t, uid ) | ||
86 | __field( gid_t, gid ) | ||
87 | __field( __u16, mode ) | ||
88 | ), | ||
89 | |||
90 | TP_fast_assign( | ||
91 | __entry->orig_ino = orig_ino; | ||
92 | __entry->dev = inode->i_sb->s_dev; | ||
93 | __entry->ino = inode->i_ino; | ||
94 | __entry->uid = i_uid_read(inode); | ||
95 | __entry->gid = i_gid_read(inode); | ||
96 | __entry->mode = inode->i_mode; | ||
97 | ), | ||
98 | |||
99 | TP_printk("dev %d,%d orig_ino %lu ino %lu mode 0%o uid %u gid %u", | ||
100 | MAJOR(__entry->dev), MINOR(__entry->dev), | ||
101 | (unsigned long) __entry->orig_ino, | ||
102 | (unsigned long) __entry->ino, __entry->mode, | ||
103 | __entry->uid, __entry->gid) | ||
104 | ); | ||
105 | |||
76 | TRACE_EVENT(ext4_free_inode, | 106 | TRACE_EVENT(ext4_free_inode, |
77 | TP_PROTO(struct inode *inode), | 107 | TP_PROTO(struct inode *inode), |
78 | 108 | ||