OSDN Git Service

btrfs: add assertions for tree == inode->io_tree to extent IO helpers
authorDavid Sterba <dsterba@suse.com>
Wed, 5 Feb 2020 18:09:30 +0000 (19:09 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:34 +0000 (17:01 +0100)
commitae6957ebbfcd418348550ac02e36b0ea86d32e0a
treef3fa1b9f0dd1b1580f3426fb293c2b985b40ff5d
parent0ceb34bf46d1a849b4d0659f8913bfcb14e5d482
btrfs: add assertions for tree == inode->io_tree to extent IO helpers

Add assertions to all helpers that get tree as argument and verify that
it's the same that can be obtained from the inode or from its pages. In
followup patches the redundant arguments and assertions will be removed
one by one.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/ordered-data.c