]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7dd1b133a475d5a93761a1112900fbc6b80a56e6
treef3fa1b9f0dd1b1580f3426fb293c2b985b40ff5d
parent00cf2729ad53b6f4d5a8945fd22e0cde9f91c34e
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