mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
btrfs: remove unused flag EXTENT_BUFFER_READ_ERR
This flag was added by commit656f30dba7("Btrfs: be aware of btree inode write errors to avoid fs corruption") but it stopped being used after commit046b562b20("btrfs: use a separate end_io handler for read_extent_buffer"). Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Daniel Vacek <neelx@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
ced47a4db4
commit
40f47f6d72
|
|
@ -3647,12 +3647,10 @@ static void end_bbio_meta_read(struct btrfs_bio *bbio)
|
|||
btrfs_validate_extent_buffer(eb, &bbio->parent_check) < 0)
|
||||
uptodate = false;
|
||||
|
||||
if (uptodate) {
|
||||
if (uptodate)
|
||||
set_extent_buffer_uptodate(eb);
|
||||
} else {
|
||||
else
|
||||
clear_extent_buffer_uptodate(eb);
|
||||
set_bit(EXTENT_BUFFER_READ_ERR, &eb->bflags);
|
||||
}
|
||||
|
||||
clear_extent_buffer_reading(eb);
|
||||
free_extent_buffer(eb);
|
||||
|
|
@ -3691,7 +3689,6 @@ int read_extent_buffer_pages_nowait(struct extent_buffer *eb, int mirror_num,
|
|||
return 0;
|
||||
}
|
||||
|
||||
clear_bit(EXTENT_BUFFER_READ_ERR, &eb->bflags);
|
||||
eb->read_mirror = 0;
|
||||
check_buffer_tree_ref(eb);
|
||||
atomic_inc(&eb->refs);
|
||||
|
|
|
|||
|
|
@ -44,8 +44,6 @@ enum {
|
|||
EXTENT_BUFFER_TREE_REF,
|
||||
EXTENT_BUFFER_STALE,
|
||||
EXTENT_BUFFER_WRITEBACK,
|
||||
/* read IO error */
|
||||
EXTENT_BUFFER_READ_ERR,
|
||||
EXTENT_BUFFER_UNMAPPED,
|
||||
EXTENT_BUFFER_IN_TREE,
|
||||
/* write IO error */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user