X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffscache%2Foperation.c;h=48a18f184d5041b9f4909137898fe0fd51bc45d8;hb=b7c15e4a1cbf19be3d3063819b472806902fb525;hp=b9f34eaede09a95a24723e0a0f79151065c03fb9;hpb=c64557d666eb62eb5f296c6b93bd0a5525ed1e36;p=pandora-kernel.git diff --git a/fs/fscache/operation.c b/fs/fscache/operation.c index b9f34eaede09..48a18f184d50 100644 --- a/fs/fscache/operation.c +++ b/fs/fscache/operation.c @@ -101,7 +101,7 @@ int fscache_submit_exclusive_op(struct fscache_object *object, object->n_ops++; object->n_exclusive++; /* reads and writes must wait */ - if (object->n_ops > 0) { + if (object->n_ops > 1) { atomic_inc(&op->usage); list_add_tail(&op->pend_link, &object->pending_ops); fscache_stat(&fscache_n_op_pend);