]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: init pagevec in ext4_da_block_invalidatepages
authorEric Sandeen <sandeen@redhat.com>
Thu, 15 Nov 2012 03:22:05 +0000 (22:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 19:44:34 +0000 (11:44 -0800)
commit2075c715c52af830db032af46f95c5134b09113a
treed925c19dd965f7d472905390f39a7c1d5b0a27e9
parent5dfa9f89ba0acbb6074c545c53a67a5af33990e0
ext4: init pagevec in ext4_da_block_invalidatepages

commit 66bea92c69477a75a5d37b9bfed5773c92a3c4b4 upstream.

ext4_da_block_invalidatepages is missing a pagevec_init(),
which means that pvec->cold contains random garbage.

This affects whether the page goes to the front or
back of the LRU when ->cold makes it to
free_hot_cold_page()

Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: CAI Qian <caiqian@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inode.c