Commit:     3d67f2d7c0fb28b0eb6a6aa100b190526a971ad9
Parent:     6fe6900e1e5b6fa9e5c59aa5061f244fe3f467e2
Author:     Nick Piggin <[EMAIL PROTECTED]>
AuthorDate: Sun May 6 14:49:05 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon May 7 12:12:51 2007 -0700

    fs: buffer don't PageUptodate without page locked
    __block_write_full_page is calling SetPageUptodate without the page locked.
    This is unusual, but not incorrect, as PG_writeback is still set.
    However the next patch will require that SetPageUptodate always be called 
    the page locked.  Simply don't bother setting the page uptodate in this case
    (it is unusual that the write path does such a thing anyway).  Instead just
    leave it to the read side to bring the page uptodate when it notices that 
    buffers are uptodate.
    Signed-off-by: Nick Piggin <[EMAIL PROTECTED]>
    Cc: Hugh Dickins <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/buffer.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 1d0852f..dcc5faa 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1700,17 +1700,8 @@ done:
                 * clean.  Someone wrote them back by hand with
                 * ll_rw_block/submit_bh.  A rare case.
-               int uptodate = 1;
-               do {
-                       if (!buffer_uptodate(bh)) {
-                               uptodate = 0;
-                               break;
-                       }
-                       bh = bh->b_this_page;
-               } while (bh != head);
-               if (uptodate)
-                       SetPageUptodate(page);
                 * The page and buffer_heads can be released at any time from
                 * here on.
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

Reply via email to