diff options
author | Josef Bacik <josef@toxicpanda.com> | 2017-05-05 11:57:14 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:25:58 +0200 |
commit | 6ec656bc0fde92c3cb14d5dc9dca69ec8cce68c6 (patch) | |
tree | 427b8eeb698ab2e74e85f13b7a5754ee5bfb2acd /fs/btrfs/scrub.c | |
parent | c6100a4b4e3d1650deafda45e49571b83270c714 (diff) | |
download | linux-stable-6ec656bc0fde92c3cb14d5dc9dca69ec8cce68c6.tar.gz linux-stable-6ec656bc0fde92c3cb14d5dc9dca69ec8cce68c6.tar.bz2 linux-stable-6ec656bc0fde92c3cb14d5dc9dca69ec8cce68c6.zip |
btrfs: remove inode argument from repair_io_failure
Once we remove the btree_inode we won't have an inode to pass anymore,
just pass the fs_info directly and the inum since we use that to print
out the repair message.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index c7b45eb2403d..ba9134b5b130 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -954,7 +954,7 @@ static int scrub_fixup_readpage(u64 inum, u64 offset, u64 root, void *fixup_ctx) ret = -EIO; goto out; } - ret = repair_io_failure(BTRFS_I(inode), offset, PAGE_SIZE, + ret = repair_io_failure(fs_info, inum, offset, PAGE_SIZE, fixup->logical, page, offset - page_offset(page), fixup->mirror_num); |