summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2019-03-20 14:27:44 +0800
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:23 +0200
commite06808be8a5296c09be84b3aaf63087b5737ba16 (patch)
treef9a217bee81aaf845497984b1a5b752809fde627 /fs/btrfs/extent_io.c
parent2b952eea813b1f7e7d4b9782271acd91625b9bb9 (diff)
downloadlinux-e06808be8a5296c09be84b3aaf63087b5737ba16.tar.gz
linux-e06808be8a5296c09be84b3aaf63087b5737ba16.tar.bz2
linux-e06808be8a5296c09be84b3aaf63087b5737ba16.zip
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 <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>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 8399fc4b27ae..cd76be7013d8 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -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,