aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ialloc.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-01-03 20:03:21 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-01-03 20:03:21 -0500
commitba80b1019aa722b24506db1ee755e0bb2f513022 (patch)
tree0c9a7dfd3af0f5991f3eaaeb65d735b11e9cf777 /fs/ext4/ialloc.c
parentc31910672376dfb8d020e32afa7249763bcd924a (diff)
ext4: Add markers for better debuggability
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ialloc.c')
-rw-r--r--fs/ext4/ialloc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index e3aa3fa38608..369c34c64292 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -210,6 +210,11 @@ void ext4_free_inode(handle_t *handle, struct inode *inode)
210 210
211 ino = inode->i_ino; 211 ino = inode->i_ino;
212 ext4_debug("freeing inode %lu\n", ino); 212 ext4_debug("freeing inode %lu\n", ino);
213 trace_mark(ext4_free_inode,
214 "dev %s ino %lu mode %d uid %lu gid %lu bocks %llu",
215 sb->s_id, inode->i_ino, inode->i_mode,
216 (unsigned long) inode->i_uid, (unsigned long) inode->i_gid,
217 (unsigned long long) inode->i_blocks);
213 218
214 /* 219 /*
215 * Note: we must free any quota before locking the superblock, 220 * Note: we must free any quota before locking the superblock,
@@ -698,6 +703,8 @@ struct inode *ext4_new_inode(handle_t *handle, struct inode *dir, int mode)
698 return ERR_PTR(-EPERM); 703 return ERR_PTR(-EPERM);
699 704
700 sb = dir->i_sb; 705 sb = dir->i_sb;
706 trace_mark(ext4_request_inode, "dev %s dir %lu mode %d", sb->s_id,
707 dir->i_ino, mode);
701 inode = new_inode(sb); 708 inode = new_inode(sb);
702 if (!inode) 709 if (!inode)
703 return ERR_PTR(-ENOMEM); 710 return ERR_PTR(-ENOMEM);
@@ -925,6 +932,8 @@ got:
925 } 932 }
926 933
927 ext4_debug("allocating inode %lu\n", inode->i_ino); 934 ext4_debug("allocating inode %lu\n", inode->i_ino);
935 trace_mark(ext4_allocate_inode, "dev %s ino %lu dir %lu mode %d",
936 sb->s_id, inode->i_ino, dir->i_ino, mode);
928 goto really_out; 937 goto really_out;
929fail: 938fail:
930 ext4_std_error(sb, err); 939 ext4_std_error(sb, err);