Btrfs: make add_pinned_bytes() take an s64 num_bytes instead of u64
authorOmar Sandoval <osandov@fb.com>
Tue, 6 Jun 2017 23:45:26 +0000 (16:45 -0700)
committerDavid Sterba <dsterba@suse.com>
Thu, 29 Jun 2017 18:17:01 +0000 (20:17 +0200)
commit0d9f824df35d11215016785213f9c0fd06a72fc0
treeac03852db9ccbf1ed1c5d6c56ac526720f6c23ce
parent1164a9fb9c7be09c2fb7489365a82d4260c81d36
Btrfs: make add_pinned_bytes() take an s64 num_bytes instead of u64

There are a few places where we pass in a negative num_bytes, so make it
signed for clarity. Also move it up in the file since later patches will
need it there.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c