ext4: init pagevec in ext4_da_block_invalidatepages
PATCH 1/1 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()
---
fs/ext4/inode.c +2 -0
@@ -1503,6 +1503,8 @@ static void ext4_da_block_invalidatepages(struct mpage_da_data *mpd) index = mpd->first_page; end = mpd->next_page -1 ; + +pagevec_init (&pvec,0 );while (index <= end) { nr_pages =pagevec_lookup (&pvec, mapping, index,PAGEVEC_SIZE );if (nr_pages ==0 )
PATCH v2 1/1 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()
---
(resend w/ stable in S-O-B area rather than fat-fingered in email cc :/ )
fs/ext4/inode.c +2 -0
@@ -1503,6 +1503,8 @@ static void ext4_da_block_invalidatepages(struct mpage_da_data *mpd) index = mpd->first_page; end = mpd->next_page -1 ; + +pagevec_init (&pvec,0 );while (index <= end) { nr_pages =pagevec_lookup (&pvec, mapping, index,PAGEVEC_SIZE );if (nr_pages ==0 )
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Eric Sandeen
Date: Sun, 11 Nov 2012 15:50:37 -0600
From: Eric Sandeen <[email protected]>
To: ext4 development <[email protected]>
Subject: [PATCH V2] ext4: init pagevec inext4_da_block_invalidatepages
ext4_da_block_invalidatepagesis missing apagevec_init(), which means thatpvec->coldcontains 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()
Looks good.
Quoted 33 lines
Signed-off-by Eric Sandeen <[email protected]>---
(resend w/ stable in S-O-B area rather than fat-fingered in email cc :/ )
fs/ext4/inode.c +2
-1@@ -1503,6 +1503,8 @@ static void ext4_da_block_invalidatepages(struct mpage_da_data *mpd) index = mpd->first_page; end = mpd->next_page -1 ; + +pagevec_init (&pvec,0 );while (index <= end) { nr_pages =pagevec_lookup (&pvec, mapping, index,PAGEVEC_SIZE );if (nr_pages ==0 ) --To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 20 lines · Eric Sandeen
ext4_da_block_invalidatepagesis missing apagevec_init(), which means thatpvec->coldcontains 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()Signed-off-by Eric Sandeen <[email protected]>---
(resend w/ stable in S-O-B area rather than fat-fingered in email cc :/ )
fs/ext4/inode.c +0
-0
fs/ext4/inode.c static void ext4_da_block_invalidatepages(struct mpage_da_data *mpd) · line 1510
Quoted 8 lines
fs/ext4/inode.c +2
-0@@ -1503,6 +1503,8 @@ static void ext4_da_block_invalidatepages(struct mpage_da_data *mpd) index = mpd->first_page; end = mpd->next_page -1 ; + +pagevec_init (&pvec,0 );while (index <= end) { nr_pages =pagevec_lookup (&pvec, mapping, index,PAGEVEC_SIZE );if (nr_pages ==0 )
Looks Good,
Signature · 1 line
Carlos
Quoted 9 lines · Eric Sandeen
ext4_da_block_invalidatepagesis missing apagevec_init(), which means thatpvec->coldcontains 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()Signed-off-by Eric Sandeen <[email protected]>
Applied, thanks.
- Ted