]> www.infradead.org Git - nvme.git/commit
bcachefs: Add tracepoints for bch2_sync_fs() and bch2_fsync()
authorYouling Tang <tangyouling@kylinos.cn>
Fri, 31 May 2024 02:35:09 +0000 (10:35 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:14 +0000 (19:00 -0400)
commit747d1d6c7efdfb4e59a93a129eaf434cb9325eb8
treeb383b5abd92388df7c60b96aa6e5c8474e1088a0
parent8b0882505d012ef5f309a1b547fae53080a62f07
bcachefs: Add tracepoints for bch2_sync_fs() and bch2_fsync()

Add trace_bch2_sync_fs() and trace_bch2_fsync() implementations.

The output in trace is as follows:
  sync-29779   [000] .....   193.700935: bch2_sync_fs: dev 254,16 wait 1
  <...>-40027  [002] .....   342.535227: bch2_fsync: dev 254,32 ino 4099 parent 4096 datasync 1

Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c
fs/bcachefs/fs.c
fs/bcachefs/trace.h