aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2025-01-09 11:24:22 +0100
committerDavid Sterba <dsterba@suse.com>2025-01-13 14:53:22 +0100
commitb6160baed37916b6b315b2ab868a265600e03b2a (patch)
tree9df62c50a9c572dcb299f1dec9f5b3bfa7f111b4
parentbtrfs: make wait_on_extent_buffer_writeback() static inline (diff)
downloadlinux-rng-b6160baed37916b6b315b2ab868a265600e03b2a.tar.xz
linux-rng-b6160baed37916b6b315b2ab868a265600e03b2a.zip
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.c3
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) {