OSDN Git Service

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)
commit831fa14f1ef0bfa9740b4e939da3263dc60502e3
tree5432cbecf6c159472cdc32ec61aafe9a5db19517
parent949964c928430a42e0d4f514d888a58a201b6fcb
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