btrfs: extent_io: Kill dead condition in extent_write_cache_pages()
authorQu Wenruo <wqu@suse.com>
Wed, 20 Mar 2019 06:27:44 +0000 (14:27 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:23 +0000 (19:02 +0200)
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>
fs/btrfs/extent_io.c

index 8399fc4b27aebc94f9a4188cf967e40948ce37da..cd76be7013d80ec7d51245281b9e604e72489cdc 100644 (file)
@@ -3974,11 +3974,6 @@ retry:
                        }
 
                        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,