From 55b03899110f672cde42831d8db9b3fc31ee1921 Mon Sep 17 00:00:00 2001 From: xiphmont Date: Fri, 19 Jan 2007 04:00:37 +0000 Subject: [PATCH] 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 --- kfusd/kfusd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kfusd/kfusd.c b/kfusd/kfusd.c index 685d18c..920c153 100755 --- a/kfusd/kfusd.c +++ b/kfusd/kfusd.c @@ -1368,7 +1368,7 @@ STATIC ssize_t fusd_client_write(struct file *file, NAME(fusd_dev), fusd_dev->pid, current->pid); 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 " "the retry's size of %d bytes", transaction->transid, transaction->size, (int) length);