summaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2020-06-02 06:48:15 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-02 19:59:08 +0200
commit28659cc8cc8766707b1b50906df38bd94dcf349b (patch)
treeb933647fdb2ed33e498c7fc363ba7232e0c4d3b6 /mm/page-writeback.c
parentmm/filemap.c: remove misleading comment (diff)
downloadlinux-28659cc8cc8766707b1b50906df38bd94dcf349b.tar.xz
linux-28659cc8cc8766707b1b50906df38bd94dcf349b.zip
mm/page-writeback.c: remove unused variable
Commit 64081362e8ff ("mm/page-writeback.c: fix range_cyclic writeback vs writepages deadlock") left unused variable, remove it. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: David Hildenbrand <david@redhat.com> Link: http://lkml.kernel.org/r/20200528033740.17269-1-yuchao0@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page-writeback.c')
-rw-r--r--mm/page-writeback.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 7326b54ab728..2df6fb174983 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -2164,7 +2164,6 @@ int write_cache_pages(struct address_space *mapping,
int error;
struct pagevec pvec;
int nr_pages;
- pgoff_t uninitialized_var(writeback_index);
pgoff_t index;
pgoff_t end; /* Inclusive */
pgoff_t done_index;
@@ -2173,8 +2172,7 @@ int write_cache_pages(struct address_space *mapping,
pagevec_init(&pvec);
if (wbc->range_cyclic) {
- writeback_index = mapping->writeback_index; /* prev offset */
- index = writeback_index;
+ index = mapping->writeback_index; /* prev offset */
end = -1;
} else {
index = wbc->range_start >> PAGE_SHIFT;