ext4: init pagevec in ext4_da_block_invalidatepages
authorEric Sandeen <sandeen@redhat.com>
Thu, 15 Nov 2012 03:22:05 +0000 (22:22 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Nov 2012 03:22:05 +0000 (22:22 -0500)
commit66bea92c69477a75a5d37b9bfed5773c92a3c4b4
tree86e3173bc78ebb334e8c5b1e9f9e0998104fb2d0
parentc6af8803cd4f56aa62a47448c55030d4905b6783
ext4: init pagevec in ext4_da_block_invalidatepages

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>
Cc: stable@vger.kernel.org
fs/ext4/inode.c