Skip to content

Commit

Permalink
btrfs: extent_io: Kill dead condition in extent_write_cache_pages()
Browse files Browse the repository at this point in the history
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 <jthumshirn@suse.de>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
Qu Wenruo authored and David Sterba committed Apr 29, 2019
1 parent 2b952ee commit e06808b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -3974,11 +3974,6 @@ static int extent_write_cache_pages(struct address_space *mapping,
}

ret = __extent_writepage(page, wbc, epd);

if (unlikely(ret == AOP_WRITEPAGE_ACTIVATE)) {
unlock_page(page);
ret = 0;
}
if (ret < 0) {
/*
* done_index is set past this page,
Expand Down

0 comments on commit e06808b

Please sign in to comment.