diff options
author | Omar Sandoval <osandov@fb.com> | 2017-06-06 16:45:30 -0700 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-29 20:17:01 +0200 |
commit | 7be07912b32d103d9789082f27dd54b47c89c744 (patch) | |
tree | 5e432366945651742de3b48e72b0884d70ddcb02 /fs/btrfs/delayed-ref.h | |
parent | 0a16c7d7aecfae8987197e50116ebfc338cbe0a2 (diff) | |
download | lwn-7be07912b32d103d9789082f27dd54b47c89c744.tar.gz lwn-7be07912b32d103d9789082f27dd54b47c89c744.zip |
Btrfs: return old and new total ref mods when adding delayed refs
We need this to decide when to account pinned bytes.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delayed-ref.h')
-rw-r--r-- | fs/btrfs/delayed-ref.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/delayed-ref.h b/fs/btrfs/delayed-ref.h index c0264ff01b53..ce88e4ac5276 100644 --- a/fs/btrfs/delayed-ref.h +++ b/fs/btrfs/delayed-ref.h @@ -247,12 +247,14 @@ int btrfs_add_delayed_tree_ref(struct btrfs_fs_info *fs_info, struct btrfs_trans_handle *trans, u64 bytenr, u64 num_bytes, u64 parent, u64 ref_root, int level, int action, - struct btrfs_delayed_extent_op *extent_op); + struct btrfs_delayed_extent_op *extent_op, + int *old_ref_mod, int *new_ref_mod); int btrfs_add_delayed_data_ref(struct btrfs_fs_info *fs_info, struct btrfs_trans_handle *trans, u64 bytenr, u64 num_bytes, u64 parent, u64 ref_root, - u64 owner, u64 offset, u64 reserved, int action); + u64 owner, u64 offset, u64 reserved, int action, + int *old_ref_mod, int *new_ref_mod); int btrfs_add_delayed_extent_op(struct btrfs_fs_info *fs_info, struct btrfs_trans_handle *trans, u64 bytenr, u64 num_bytes, |