diff options
| author | Josef Bacik <josef@toxicpanda.com> | 2022-09-09 17:53:14 -0400 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2022-09-26 12:28:02 +0200 |
| commit | 0d0a762c419a98dcf40db20b7f2681d7b7191d46 (patch) | |
| tree | 4888f0c9fc447489f24c7ca184ba675a71016bf5 /fs/btrfs/compression.c | |
| parent | btrfs: add KCSAN annotations for unlocked access to block_rsv->full (diff) | |
| download | linux-0d0a762c419a98dcf40db20b7f2681d7b7191d46.tar.gz linux-0d0a762c419a98dcf40db20b7f2681d7b7191d46.zip | |
btrfs: rename clean_io_failure and remove extraneous args
This is exported, so rename it to btrfs_clean_io_failure. Additionally
we are passing in the io tree's and such from the inode, so instead of
doing all that simply pass in the inode itself and get all the
components we need directly inside of btrfs_clean_io_failure.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
| -rw-r--r-- | fs/btrfs/compression.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 1c77de3239bc..cac0eeceb815 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -183,9 +183,8 @@ static void end_compressed_bio_read(struct btrfs_bio *bbio) if (!status && (!csum || !btrfs_check_data_csum(inode, bbio, offset, bv.bv_page, bv.bv_offset))) { - clean_io_failure(fs_info, &bi->io_failure_tree, - &bi->io_tree, start, bv.bv_page, - btrfs_ino(bi), bv.bv_offset); + btrfs_clean_io_failure(bi, start, bv.bv_page, + bv.bv_offset); } else { int ret; |
