Skip to content

Commit b6160ba

Browse files
committed
btrfs: drop one time used local variable in end_bbio_meta_write()
Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 075adee commit b6160ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/btrfs/extent_io.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,11 +1659,10 @@ static void end_bbio_meta_write(struct btrfs_bio *bbio)
16591659
{
16601660
struct extent_buffer *eb = bbio->private;
16611661
struct btrfs_fs_info *fs_info = eb->fs_info;
1662-
bool uptodate = !bbio->bio.bi_status;
16631662
struct folio_iter fi;
16641663
u32 bio_offset = 0;
16651664

1666-
if (!uptodate)
1665+
if (bbio->bio.bi_status != BLK_STS_OK)
16671666
set_btree_ioerr(eb);
16681667

16691668
bio_for_each_folio_all(fi, &bbio->bio) {

0 commit comments

Comments
 (0)