aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-11-08 13:51:33 -0500
committerTheodore Ts'o <tytso@mit.edu>2010-11-08 13:51:33 -0500
commit7ff9c073dd4d7200399076554f7ab9b876f196f6 (patch)
tree6ca4eb4ca9b2f6f7b11e8197bd8a9417d7307b00 /fs/ext4/super.c
parentb56ff9d397cecdaad6c98c9d57cc6fea475e1f50 (diff)
ext4: Add new ext4 inode tracepoints
Add ext4_evict_inode, ext4_drop_inode, ext4_mark_inode_dirty, and ext4_begin_ordered_truncate() Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index ee91e29ddf95..61182fe6254e 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -833,6 +833,14 @@ static struct inode *ext4_alloc_inode(struct super_block *sb)
833 return &ei->vfs_inode; 833 return &ei->vfs_inode;
834} 834}
835 835
836static int ext4_drop_inode(struct inode *inode)
837{
838 int drop = generic_drop_inode(inode);
839
840 trace_ext4_drop_inode(inode, drop);
841 return drop;
842}
843
836static void ext4_destroy_inode(struct inode *inode) 844static void ext4_destroy_inode(struct inode *inode)
837{ 845{
838 ext4_ioend_wait(inode); 846 ext4_ioend_wait(inode);
@@ -1175,6 +1183,7 @@ static const struct super_operations ext4_sops = {
1175 .destroy_inode = ext4_destroy_inode, 1183 .destroy_inode = ext4_destroy_inode,
1176 .write_inode = ext4_write_inode, 1184 .write_inode = ext4_write_inode,
1177 .dirty_inode = ext4_dirty_inode, 1185 .dirty_inode = ext4_dirty_inode,
1186 .drop_inode = ext4_drop_inode,
1178 .evict_inode = ext4_evict_inode, 1187 .evict_inode = ext4_evict_inode,
1179 .put_super = ext4_put_super, 1188 .put_super = ext4_put_super,
1180 .sync_fs = ext4_sync_fs, 1189 .sync_fs = ext4_sync_fs,
@@ -1196,6 +1205,7 @@ static const struct super_operations ext4_nojournal_sops = {
1196 .destroy_inode = ext4_destroy_inode, 1205 .destroy_inode = ext4_destroy_inode,
1197 .write_inode = ext4_write_inode, 1206 .write_inode = ext4_write_inode,
1198 .dirty_inode = ext4_dirty_inode, 1207 .dirty_inode = ext4_dirty_inode,
1208 .drop_inode = ext4_drop_inode,
1199 .evict_inode = ext4_evict_inode, 1209 .evict_inode = ext4_evict_inode,
1200 .write_super = ext4_write_super, 1210 .write_super = ext4_write_super,
1201 .put_super = ext4_put_super, 1211 .put_super = ext4_put_super,