Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bce997682fe3121516f5a20cf7bad2e6029ba018
Commit:     bce997682fe3121516f5a20cf7bad2e6029ba018
Parent:     7307de80510a70e5e5aa98de1e80ccbb7d90a3a8
Author:     Mark Fasheh <[EMAIL PROTECTED]>
AuthorDate: Mon Jun 18 11:12:36 2007 -0700
Committer:  Mark Fasheh <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 17:31:52 2007 -0700

    ocfs2: harden buffer check during mapping of page blocks
    
    We don't want to submit buffer_new blocks for read i/o. This actually won't
    happen right now because those requests during an allocating write are all 
nicely
    aligned. It's probably a good idea to provide an explicit check though.
    
    Signed-off-by: Mark Fasheh <[EMAIL PROTECTED]>
---
 fs/ocfs2/aops.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index b8869fd..e8d16ae 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -712,7 +712,8 @@ int ocfs2_map_page_blocks(struct page *page, u64 *p_blkno,
                        if (!buffer_uptodate(bh))
                                set_buffer_uptodate(bh);
                } else if (!buffer_uptodate(bh) && !buffer_delay(bh) &&
-                    (block_start < from || block_end > to)) {
+                          !buffer_new(bh) &&
+                          (block_start < from || block_end > to)) {
                        ll_rw_block(READ, 1, &bh);
                        *wait_bh++=bh;
                }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to