]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
aio-make-aio_put_req-lockless-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 26 Mar 2013 23:26:18 +0000 (10:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 2 Apr 2013 07:30:02 +0000 (18:30 +1100)
WARNING: line over 80 characters
#160: FILE: fs/aio.c:548:
+ avail = aio_ring_avail(&ctx->ring_info, ring) - atomic_read(&ctx->reqs_active);

total: 0 errors, 1 warnings, 224 lines checked

./patches/aio-make-aio_put_req-lockless.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Kent Overstreet <koverstreet@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/aio.c

index 3048cc94d8044277c0d2e85b71539239d26a83a9..3a33c3756dde52f9f8eba2045f2d94aa88109e0d 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -545,7 +545,8 @@ static int kiocb_batch_refill(struct kioctx *ctx, struct kiocb_batch *batch)
        spin_lock_irq(&ctx->ctx_lock);
        ring = kmap_atomic(ctx->ring_info.ring_pages[0]);
 
-       avail = aio_ring_avail(&ctx->ring_info, ring) - atomic_read(&ctx->reqs_active);
+       avail = aio_ring_avail(&ctx->ring_info, ring) -
+                               atomic_read(&ctx->reqs_active);
        BUG_ON(avail < 0);
        if (avail < allocated) {
                /* Trim back the number of requests. */