aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/super-io.c
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@gmail.com> 2022-04-03 15:13:20 -0400
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-10-22 17:09:30 -0400
commit4254f5bf6e3d62ab7108a556d5afc54188e17041 (patch)
tree95560e41a72608da55edeb806b252c0286107c4b /fs/bcachefs/super-io.c
parentbcachefs: gc mark fn fixes, cleanups (diff)
downloadlinux-4254f5bf6e3d62ab7108a556d5afc54188e17041.tar.gz
linux-4254f5bf6e3d62ab7108a556d5afc54188e17041.tar.bz2
linux-4254f5bf6e3d62ab7108a556d5afc54188e17041.zip
bcachefs: Add a tracepoint for superblock writes
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super-io.c')
-rw-r--r--fs/bcachefs/super-io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c
index 4fb2bede39f6..7e885b51349e 100644
--- a/fs/bcachefs/super-io.c
+++ b/fs/bcachefs/super-io.c
@@ -16,6 +16,7 @@
#include "quota.h"
#include "super-io.h"
#include "super.h"
+#include "trace.h"
#include "vstructs.h"
#include <linux/backing-dev.h>
@@ -799,6 +800,8 @@ int bch2_write_super(struct bch_fs *c)
unsigned degraded_flags = BCH_FORCE_IF_DEGRADED;
int ret = 0;
+ trace_write_super(c, _RET_IP_);
+
if (c->opts.very_degraded)
degraded_flags |= BCH_FORCE_IF_LOST;