Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e06808be authored by Qu Wenruo's avatar Qu Wenruo Committed by David Sterba
Browse files

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: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2b952eea
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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,