direct.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) --- linux-2.6.5/fs/nfs/direct.c.count 2004-05-14 17:18:51.000000000 +0200 +++ linux-2.6.5/fs/nfs/direct.c 2004-05-17 17:27:21.000000000 +0200 @@ -297,7 +297,7 @@ if (result <= 0) { if (tot_bytes > 0) break; - return result; + goto out; } if (tot_bytes == 0) @@ -336,9 +336,12 @@ VERF_SIZE) != 0) goto sync_retry; } + result = tot_bytes; + +out: nfs_end_data_update_defer(inode); - return tot_bytes; + return result; sync_retry: wdata.args.stable = NFS_FILE_SYNC;