Skip to content

Commit e06808b

Browse files
adam900710kdave
authored andcommitted
btrfs: extent_io: Kill dead condition in extent_write_cache_pages()
Since __extent_writepage() will no longer return >0 value, (ret == AOP_WRITEPAGE_ACTIVATE) will never be true. Kill that dead branch. Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 2b952ee commit e06808b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/btrfs/extent_io.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3974,11 +3974,6 @@ static int extent_write_cache_pages(struct address_space *mapping,
39743974
}
39753975

39763976
ret = __extent_writepage(page, wbc, epd);
3977-
3978-
if (unlikely(ret == AOP_WRITEPAGE_ACTIVATE)) {
3979-
unlock_page(page);
3980-
ret = 0;
3981-
}
39823977
if (ret < 0) {
39833978
/*
39843979
* done_index is set past this page,

0 commit comments

Comments
 (0)