diff options
author | Theodore Ts'o <tytso@mit.edu> | 2010-01-01 01:00:21 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-01-01 01:00:21 -0500 |
commit | f8ec9d6837241865cf99bed97bb99f4399fd5a03 (patch) | |
tree | f1198366ae4c9c2db3c8869813f061ee85d3b243 /fs/ext4/inode.c | |
parent | 71f2be213a0009098819e5c04f75ff19f84f2122 (diff) |
ext4: Add new tracepoints to debug delayed allocation space functions
Add tracepoints for ext4_da_reserve_space(),
ext4_da_update_reserve_space(), and ext4_da_release_space().
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 3e8afd969236..1a3d7b232cd7 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -1061,6 +1061,7 @@ void ext4_da_update_reserve_space(struct inode *inode, | |||
1061 | int mdb_free = 0, allocated_meta_blocks = 0; | 1061 | int mdb_free = 0, allocated_meta_blocks = 0; |
1062 | 1062 | ||
1063 | spin_lock(&ei->i_block_reservation_lock); | 1063 | spin_lock(&ei->i_block_reservation_lock); |
1064 | trace_ext4_da_update_reserve_space(inode, used); | ||
1064 | if (unlikely(used > ei->i_reserved_data_blocks)) { | 1065 | if (unlikely(used > ei->i_reserved_data_blocks)) { |
1065 | ext4_msg(inode->i_sb, KERN_NOTICE, "%s: ino %lu, used %d " | 1066 | ext4_msg(inode->i_sb, KERN_NOTICE, "%s: ino %lu, used %d " |
1066 | "with only %d reserved data blocks\n", | 1067 | "with only %d reserved data blocks\n", |
@@ -1846,6 +1847,7 @@ repeat: | |||
1846 | spin_lock(&ei->i_block_reservation_lock); | 1847 | spin_lock(&ei->i_block_reservation_lock); |
1847 | md_reserved = ei->i_reserved_meta_blocks; | 1848 | md_reserved = ei->i_reserved_meta_blocks; |
1848 | md_needed = ext4_calc_metadata_amount(inode, lblock); | 1849 | md_needed = ext4_calc_metadata_amount(inode, lblock); |
1850 | trace_ext4_da_reserve_space(inode, md_needed); | ||
1849 | spin_unlock(&ei->i_block_reservation_lock); | 1851 | spin_unlock(&ei->i_block_reservation_lock); |
1850 | 1852 | ||
1851 | /* | 1853 | /* |