Commit:     bb33ed6345d6156484f39089aa8b52f44ce76609
Parent:     1800782016fda6fbc9990a0227fec581070f23af
Author:     David Howells <[EMAIL PROTECTED]>
AuthorDate: Tue May 15 23:57:04 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed May 16 21:19:15 2007 -0700

    AFS: Fix afs_prepare_write()
    afs_prepare_write() should not mark a page up to date if it only partially
    fills it in, in expectation of the caller filling in the rest prior to 
    commit_write().  commit_write(), however, should mark the page up to date.
    Signed-off-by: David Howells <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/afs/write.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/afs/write.c b/fs/afs/write.c
index 28f3751..a03b92a 100644
--- a/fs/afs/write.c
+++ b/fs/afs/write.c
@@ -206,7 +206,6 @@ int afs_prepare_write(struct file *file, struct page *page,
                        _leave(" = %d [prep]", ret);
                        return ret;
-               SetPageUptodate(page);
@@ -311,8 +310,8 @@ int afs_commit_write(struct file *file, struct page *page,
+       SetPageUptodate(page);
        if (PageDirty(page))
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