From: Andrew Morton Date: Tue, 26 Mar 2013 23:26:18 +0000 (+1100) Subject: aio-make-aio_put_req-lockless-checkpatch-fixes X-Git-Tag: next-20130402~2^2~48 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=25d05ba5bdf92e6f46af96e090c1e221559f8bb1;p=karo-tx-linux.git aio-make-aio_put_req-lockless-checkpatch-fixes 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 Signed-off-by: Andrew Morton --- diff --git a/fs/aio.c b/fs/aio.c index 3048cc94d804..3a33c3756dde 100644 --- 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. */