Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3d509e5454a0a5ac88bf3191ab65d85952c1de31
Commit:     3d509e5454a0a5ac88bf3191ab65d85952c1de31
Parent:     bf4285e75c3272ad9bfdeb886d247962bb2985f8
Author:     Chuck Lever <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 20 14:55:04 2007 -0500
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 02:06:02 2008 -0500

    NFS: nfs_write_end clean up
    
    Clean up: commit 4899f9c8 added nfs_write_end(), which introduces a
    conditional expression that returns an unsigned integer in one arm and
    a signed integer in the other.
    
    Signed-off-by: Chuck Lever <[EMAIL PROTECTED]>
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 fs/nfs/file.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 4560fc2..ef57a5a 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -349,7 +349,9 @@ static int nfs_write_end(struct file *file, struct 
address_space *mapping,
        unlock_page(page);
        page_cache_release(page);
 
-       return status < 0 ? status : copied;
+       if (status < 0)
+               return status;
+       return copied;
 }
 
 static void nfs_invalidate_page(struct page *page, unsigned long offset)
-
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