Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8971a1016b9db4164c3c1b47ae1fde2818becf91
Commit:     8971a1016b9db4164c3c1b47ae1fde2818becf91
Parent:     754ce4f29937ba11f16afa41a648a30b0fc1f075
Author:     NeilBrown <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 14 00:33:11 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Feb 14 08:09:53 2007 -0800

    [PATCH] knfsd: fix return value for writes to some files in 'nfsd' 
filesystem
    
    Most files in the 'nfsd' filesystem are transactional.  When you write, a
    reply is generated that can be read back only on the same 'file'.
    
    If the reply has zero length, the 'write' will incorrectly return a value of
    '0' instead of the length that was written.  This causes 'rpc.nfsd' to give 
an
    annoying warning.
    
    This patch fixes the test.
    
    Signed-off-by: Neil Brown <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 fs/nfsd/nfsctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index eedf2e3..71c686d 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -123,7 +123,7 @@ static ssize_t nfsctl_transaction_write(struct file *file, 
const char __user *bu
                return PTR_ERR(data);
 
        rv =  write_op[ino](file, data, size);
-       if (rv>0) {
+       if (rv >= 0) {
                simple_transaction_set(file, rv);
                rv = size;
        }
-
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