]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use inode from io_ctl in io_ctl_prepare_pages
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 11 Feb 2020 15:10:19 +0000 (00:10 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:43 +0000 (17:01 +0100)
commit989aca881e7afc99a0a6bf83608b7832cd143622
tree5432cbecf6c159472cdc32ec61aafe9a5db19517
parentf03b52975292bb1bef884378683e2c7bbe3b8d4f
btrfs: use inode from io_ctl in io_ctl_prepare_pages

io_ctl_prepare_pages() gets a 'struct btrfs_io_ctl' as well as a 'struct
inode', but btrfs_io_ctl::inode points to the same struct inode as this is
assgined in io_ctl_init().

Use the inode form io_ctl to reduce the arguments of io_ctl_prepare_pages.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c