diff options
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r-- | mm/backing-dev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index bceac647e4d1..ac78a3336181 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/module.h> | 10 | #include <linux/module.h> |
11 | #include <linux/writeback.h> | 11 | #include <linux/writeback.h> |
12 | #include <linux/device.h> | 12 | #include <linux/device.h> |
13 | #include <trace/events/writeback.h> | ||
13 | 14 | ||
14 | static atomic_long_t bdi_seq = ATOMIC_LONG_INIT(0); | 15 | static atomic_long_t bdi_seq = ATOMIC_LONG_INIT(0); |
15 | 16 | ||
@@ -518,6 +519,7 @@ int bdi_register(struct backing_dev_info *bdi, struct device *parent, | |||
518 | 519 | ||
519 | bdi_debug_register(bdi, dev_name(dev)); | 520 | bdi_debug_register(bdi, dev_name(dev)); |
520 | set_bit(BDI_registered, &bdi->state); | 521 | set_bit(BDI_registered, &bdi->state); |
522 | trace_writeback_bdi_register(bdi); | ||
521 | exit: | 523 | exit: |
522 | return ret; | 524 | return ret; |
523 | } | 525 | } |
@@ -578,6 +580,7 @@ static void bdi_prune_sb(struct backing_dev_info *bdi) | |||
578 | void bdi_unregister(struct backing_dev_info *bdi) | 580 | void bdi_unregister(struct backing_dev_info *bdi) |
579 | { | 581 | { |
580 | if (bdi->dev) { | 582 | if (bdi->dev) { |
583 | trace_writeback_bdi_unregister(bdi); | ||
581 | bdi_prune_sb(bdi); | 584 | bdi_prune_sb(bdi); |
582 | 585 | ||
583 | if (!bdi_cap_flush_forker(bdi)) | 586 | if (!bdi_cap_flush_forker(bdi)) |