btrfs: make btrfs_check_repairable() static
Since its introduction in commit 2fe6303e7c
("Btrfs: split
bio_readpage_error into several functions"), btrfs_check_repairable()
has only been used from extent_io.c where it is defined.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:

committed by
David Sterba

parent
47df7765a8
commit
ce06d3ec2b
@@ -2537,7 +2537,7 @@ int btrfs_get_io_failure_record(struct inode *inode, u64 start, u64 end,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool btrfs_check_repairable(struct inode *inode, bool needs_validation,
|
static bool btrfs_check_repairable(struct inode *inode, bool needs_validation,
|
||||||
struct io_failure_record *failrec,
|
struct io_failure_record *failrec,
|
||||||
int failed_mirror)
|
int failed_mirror)
|
||||||
{
|
{
|
||||||
|
@@ -312,9 +312,6 @@ struct io_failure_record {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
bool btrfs_check_repairable(struct inode *inode, bool needs_validation,
|
|
||||||
struct io_failure_record *failrec,
|
|
||||||
int failed_mirror);
|
|
||||||
struct bio *btrfs_create_repair_bio(struct inode *inode, struct bio *failed_bio,
|
struct bio *btrfs_create_repair_bio(struct inode *inode, struct bio *failed_bio,
|
||||||
struct io_failure_record *failrec,
|
struct io_failure_record *failrec,
|
||||||
struct page *page, int pg_offset, int icsum,
|
struct page *page, int pg_offset, int icsum,
|
||||||
|
Reference in New Issue
Block a user