Skip to content

Commit

Permalink
f2fs: activate f2fs_trace_ios
Browse files Browse the repository at this point in the history
This patch activates f2fs_trace_ios.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
  • Loading branch information
Jaegeuk Kim authored and Grarak committed Nov 23, 2015
1 parent 8b660d7 commit 0cf466b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/f2fs/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "f2fs.h"
#include "node.h"
#include "segment.h"
#include "trace.h"
#include <trace/events/f2fs.h>

static void f2fs_read_end_io(struct bio *bio, int err)
Expand Down Expand Up @@ -137,6 +138,7 @@ int f2fs_submit_page_bio(struct f2fs_sb_info *sbi, struct page *page,
struct bio *bio;

trace_f2fs_submit_page_bio(page, fio->blk_addr, fio->rw);
f2fs_trace_ios(page, fio, 0);

/* Allocate a new bio */
bio = __bio_alloc(sbi, fio->blk_addr, 1, is_read_io(fio->rw));
Expand Down Expand Up @@ -185,6 +187,7 @@ void f2fs_submit_page_mbio(struct f2fs_sb_info *sbi, struct page *page,
}

io->last_block_in_bio = fio->blk_addr;
f2fs_trace_ios(page, fio, 0);

up_write(&io->io_rwsem);
trace_f2fs_submit_page_mbio(page, fio->rw, fio->type, fio->blk_addr);
Expand Down
2 changes: 2 additions & 0 deletions fs/f2fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "segment.h"
#include "xattr.h"
#include "acl.h"
#include "trace.h"
#include <trace/events/f2fs.h>

static int f2fs_vm_page_mkwrite(struct vm_area_struct *vma,
Expand Down Expand Up @@ -265,6 +266,7 @@ int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
ret = f2fs_issue_flush(sbi);
out:
trace_f2fs_sync_file_exit(inode, need_cp, datasync, ret);
f2fs_trace_ios(NULL, NULL, 1);
return ret;
}

Expand Down
2 changes: 2 additions & 0 deletions fs/f2fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "segment.h"
#include "xattr.h"
#include "gc.h"
#include "trace.h"

#define CREATE_TRACE_POINTS
#include <trace/events/f2fs.h>
Expand Down Expand Up @@ -493,6 +494,7 @@ int f2fs_sync_fs(struct super_block *sb, int sync)
} else {
f2fs_balance_fs(sbi);
}
f2fs_trace_ios(NULL, NULL, 1);

return 0;
}
Expand Down

0 comments on commit 0cf466b

Please sign in to comment.