diff options
author | Josef Bacik <josef@toxicpanda.com> | 2017-10-19 21:15:56 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-11-01 22:45:35 +0300 |
commit | dd48d4072e0cdac51edcbff66342fe2f21b5b588 (patch) | |
tree | 14a31bbdb7304a4510790e7c10c94e576459294b /fs/btrfs/btrfs_inode.h | |
parent | 8b62f87bad9cf06e536799bf8cb942ab95f6bfa4 (diff) | |
download | linux-dd48d4072e0cdac51edcbff66342fe2f21b5b588.tar.xz |
btrfs: add tracepoints for outstanding extents mods
This is handy for tracing problems with modifying the outstanding
extents counters.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r-- | fs/btrfs/btrfs_inode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h index bed88811f686..427c8738a3bd 100644 --- a/fs/btrfs/btrfs_inode.h +++ b/fs/btrfs/btrfs_inode.h @@ -274,6 +274,8 @@ static inline void btrfs_mod_outstanding_extents(struct btrfs_inode *inode, inode->outstanding_extents += mod; if (btrfs_is_free_space_inode(inode)) return; + trace_btrfs_inode_mod_outstanding_extents(inode->root, btrfs_ino(inode), + mod); } static inline void btrfs_mod_reserved_extents(struct btrfs_inode *inode, int mod) |