diff options
| author | Daniel Vacek <[email protected]> | 2025-03-25 16:31:36 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:39 +0000 |
| commit | 40f47f6d722e1e0e24c8f21ce4d7c63a6169771f (patch) | |
| tree | 0c4c65e9dd75528f90e0bc10af3fc1b9dc1a1894 /fs/btrfs/extent_io.c | |
| parent | btrfs: factor out the main loop of btrfs_buffered_write() into a helper (diff) | |
| download | kernel-40f47f6d722e1e0e24c8f21ce4d7c63a6169771f.tar.gz kernel-40f47f6d722e1e0e24c8f21ce4d7c63a6169771f.zip | |
btrfs: remove unused flag EXTENT_BUFFER_READ_ERR
This flag was added by commit 656f30dba7ab ("Btrfs: be aware of btree
inode write errors to avoid fs corruption") but it stopped being used
after commit 046b562b20a5 ("btrfs: use a separate end_io handler for
read_extent_buffer").
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Daniel Vacek <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/extent_io.c')
| -rw-r--r-- | fs/btrfs/extent_io.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 13bdd60da3c7..af135d362ff1 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -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); |
