aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/trace.c')
-rw-r--r--fs/f2fs/trace.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/f2fs/trace.c b/fs/f2fs/trace.c
index 145fb659ad44..562ce0821559 100644
--- a/fs/f2fs/trace.c
+++ b/fs/f2fs/trace.c
@@ -29,7 +29,8 @@ static inline void __print_last_io(void)
29 last_io.major, last_io.minor, 29 last_io.major, last_io.minor,
30 last_io.pid, "----------------", 30 last_io.pid, "----------------",
31 last_io.type, 31 last_io.type,
32 last_io.fio.rw, last_io.fio.blk_addr, 32 last_io.fio.rw,
33 last_io.fio.new_blkaddr,
33 last_io.len); 34 last_io.len);
34 memset(&last_io, 0, sizeof(last_io)); 35 memset(&last_io, 0, sizeof(last_io));
35} 36}
@@ -101,7 +102,8 @@ void f2fs_trace_ios(struct f2fs_io_info *fio, int flush)
101 last_io.pid == pid && 102 last_io.pid == pid &&
102 last_io.type == __file_type(inode, pid) && 103 last_io.type == __file_type(inode, pid) &&
103 last_io.fio.rw == fio->rw && 104 last_io.fio.rw == fio->rw &&
104 last_io.fio.blk_addr + last_io.len == fio->blk_addr) { 105 last_io.fio.new_blkaddr + last_io.len ==
106 fio->new_blkaddr) {
105 last_io.len++; 107 last_io.len++;
106 return; 108 return;
107 } 109 }