Merge branch 'for_rmk' of git://github.com/at91linux/linux-2.6-at91 into devel-stable
[pandora-kernel.git] / fs / nfs / direct.c
index 84d3c8b..e6ace0d 100644 (file)
@@ -867,7 +867,7 @@ static ssize_t nfs_direct_write(struct kiocb *iocb, const struct iovec *iov,
                goto out;
        nfs_alloc_commit_data(dreq);
 
-       if (dreq->commit_data == NULL || count < wsize)
+       if (dreq->commit_data == NULL || count <= wsize)
                sync = NFS_FILE_SYNC;
 
        dreq->inode = inode;