aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-05-17 03:00:00 -0400
committerTheodore Ts'o <tytso@mit.edu>2010-05-17 03:00:00 -0400
commitf307333e14f6b18045eb4198fe646d9b6028f3ed (patch)
tree71611b08a95f4f07de9b4c19100474188027e62e /fs
parent5a58ec8766e0ce98fd585eb404b3e56935afafe6 (diff)
ext4: Add new tracepoints to track mballoc's buddy bitmap loads
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 0bdc0188e5e2..a93f554b6803 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -890,6 +890,7 @@ static int ext4_mb_init_cache(struct page *page, char *incore)
890 BUG_ON(incore == NULL); 890 BUG_ON(incore == NULL);
891 mb_debug(1, "put buddy for group %u in page %lu/%x\n", 891 mb_debug(1, "put buddy for group %u in page %lu/%x\n",
892 group, page->index, i * blocksize); 892 group, page->index, i * blocksize);
893 trace_ext4_mb_buddy_bitmap_load(sb, group);
893 grinfo = ext4_get_group_info(sb, group); 894 grinfo = ext4_get_group_info(sb, group);
894 grinfo->bb_fragments = 0; 895 grinfo->bb_fragments = 0;
895 memset(grinfo->bb_counters, 0, 896 memset(grinfo->bb_counters, 0,
@@ -907,6 +908,7 @@ static int ext4_mb_init_cache(struct page *page, char *incore)
907 BUG_ON(incore != NULL); 908 BUG_ON(incore != NULL);
908 mb_debug(1, "put bitmap for group %u in page %lu/%x\n", 909 mb_debug(1, "put bitmap for group %u in page %lu/%x\n",
909 group, page->index, i * blocksize); 910 group, page->index, i * blocksize);
911 trace_ext4_mb_bitmap_load(sb, group);
910 912
911 /* see comments in ext4_mb_put_pa() */ 913 /* see comments in ext4_mb_put_pa() */
912 ext4_lock_group(sb, group); 914 ext4_lock_group(sb, group);