Commit:     beb497ab48b1639282129f7bc18fef311fffff3d
Parent:     fb4d64e78ceab77cf20f7796f74aa10ebe862032
Author:     Dmitriy Monakhov <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 16 01:27:18 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Feb 16 08:13:56 2007 -0800

    [PATCH] __page_symlink retry loop error code fix
    If prepare_write or commit_write return AOP_TRUNCATED_PAGE we jump to
    "retry" label and than if find_or_create_page() failed function return
    incorrect error code.
    Signed-off-by: Dmitriy Monakhov <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/namei.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index 161e222..ee60cc4 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2688,10 +2688,11 @@ int __page_symlink(struct inode *inode, const char 
*symname, int len,
        struct address_space *mapping = inode->i_mapping;
        struct page *page;
-       int err = -ENOMEM;
+       int err;
        char *kaddr;
+       err = -ENOMEM;
        page = find_or_create_page(mapping, 0, gfp_mask);
        if (!page)
                goto fail;
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