]> git.baikalelectronics.ru Git - kernel.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)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Nov 2012 03:22:05 +0000 (22:22 -0500)
commit0243638e266bb0b8221d6061e25a7ef52f27d284
tree86e3173bc78ebb334e8c5b1e9f9e0998104fb2d0
parentc95fdc3ca82197f3c1fbe457fc03e68d7e5ff41f
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