]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: drop one time used local variable in end_bbio_meta_write()
authorDavid Sterba <dsterba@suse.com>
Thu, 9 Jan 2025 10:24:22 +0000 (11:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:22 +0000 (14:53 +0100)
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c

index 7487681cbd714d7a1a1156813cb4bcae4a64d063..5463ff10b705c1903df2cd2e4cc751504c19b92f 100644 (file)
@@ -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) {