Make bitmask 'and' operators return a result code
[pandora-kernel.git] / include / linux / iocontext.h
index dd05434..4da4a75 100644 (file)
@@ -92,7 +92,7 @@ static inline struct io_context *ioc_task_link(struct io_context *ioc)
         * a race).
         */
        if (ioc && atomic_long_inc_not_zero(&ioc->refcount)) {
-               atomic_long_inc(&ioc->refcount);
+               atomic_inc(&ioc->nr_tasks);
                return ioc;
        }