OSDN Git Service

Btrfs: return old and new total ref mods when adding delayed refs
authorOmar Sandoval <osandov@fb.com>
Tue, 6 Jun 2017 23:45:30 +0000 (16:45 -0700)
committerDavid Sterba <dsterba@suse.com>
Thu, 29 Jun 2017 18:17:01 +0000 (20:17 +0200)
commit7be07912b32d103d9789082f27dd54b47c89c744
tree5e432366945651742de3b48e72b0884d70ddcb02
parent0a16c7d7aecfae8987197e50116ebfc338cbe0a2
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>
fs/btrfs/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c