Correct a bug in which all valid interrupted write operations were being erroneously tossed (== instead of !=)

git-svn-id: http://svn.xiph.org/trunk/fusd@12350 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
xiphmont 2007-01-19 04:00:37 +00:00
parent 243da80fc6
commit 55b0389911

View File

@ -1368,7 +1368,7 @@ STATIC ssize_t fusd_client_write(struct file *file,
NAME(fusd_dev), fusd_dev->pid, current->pid); NAME(fusd_dev), fusd_dev->pid, current->pid);
transaction = fusd_find_incomplete_transaction(fusd_file, FUSD_WRITE); transaction = fusd_find_incomplete_transaction(fusd_file, FUSD_WRITE);
if (transaction && transaction->size == length) if (transaction && transaction->size != length)
{ {
RDEBUG(2, "Incomplete I/O transaction %ld thrown out, as the transaction's size of %d bytes was not equal to " RDEBUG(2, "Incomplete I/O transaction %ld thrown out, as the transaction's size of %d bytes was not equal to "
"the retry's size of %d bytes", transaction->transid, transaction->size, (int) length); "the retry's size of %d bytes", transaction->transid, transaction->size, (int) length);