]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: extent-tree: Detect bytes_pinned underflow earlier
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Wed, 24 Oct 2018 12:24:02 +0000 (20:24 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:26 +0000 (14:51 +0100)
commit07243a2997e579081cc76c409aecef57b51efa95
tree3e71421186e5300a82000bf2b5abd486ef2fa9e2
parent106ffd0eaebe7dd4fa325e13e3b8f8de48f29c14
btrfs: extent-tree: Detect bytes_pinned underflow earlier

Introduce a new wrapper update_bytes_pinned to replace open coded
bytes_pinned modifiers. Now the underflows of space_info::bytes_pinned
get detected and reported.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c