From 25d05ba5bdf92e6f46af96e090c1e221559f8bb1 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 27 Mar 2013 10:26:18 +1100 Subject: [PATCH] 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 --- fs/aio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. */ -- 2.39.5