btrfs: replace async_cow::root with fs_info
authorDavid Sterba <dsterba@suse.com>
Thu, 22 Nov 2018 16:16:44 +0000 (17:16 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:40 +0000 (14:51 +0100)
commit600b6cf468b038798313da42d2438c10bcb10261
tree634622801caad4bb6cbeb83da52e1a5a4e6376f3
parent06ea01b1eeb10450ee8448f8895dd641c8d37047
btrfs: replace async_cow::root with fs_info

The async_cow::root is used to propagate fs_info to async_cow_submit.
We can't use inode to reach it because it could become NULL after
write without compression in async_cow_start.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c