diff options
| author | David Sterba <dsterba@suse.com> | 2025-01-09 11:24:22 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-01-13 14:53:22 +0100 |
| commit | b6160baed37916b6b315b2ab868a265600e03b2a (patch) | |
| tree | 9df62c50a9c572dcb299f1dec9f5b3bfa7f111b4 | |
| parent | 075adeeb9204359e8232aeccf8b3c350ff6d9ff4 (diff) | |
btrfs: drop one time used local variable in end_bbio_meta_write()
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
| -rw-r--r-- | fs/btrfs/extent_io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 7487681cbd71..5463ff10b705 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -1659,11 +1659,10 @@ static void end_bbio_meta_write(struct btrfs_bio *bbio) { struct extent_buffer *eb = bbio->private; struct btrfs_fs_info *fs_info = eb->fs_info; - bool uptodate = !bbio->bio.bi_status; struct folio_iter fi; u32 bio_offset = 0; - if (!uptodate) + if (bbio->bio.bi_status != BLK_STS_OK) set_btree_ioerr(eb); bio_for_each_folio_all(fi, &bbio->bio) { |
