From patchwork Thu Apr 11 21:08:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jerome Glisse X-Patchwork-Id: 10896811 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E01FC17E6 for ; Thu, 11 Apr 2019 21:08:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C92A328DF5 for ; Thu, 11 Apr 2019 21:08:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD83628DF8; Thu, 11 Apr 2019 21:08:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E75128DF5 for ; Thu, 11 Apr 2019 21:08:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 991DB6B026A; Thu, 11 Apr 2019 17:08:48 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8F7226B026B; Thu, 11 Apr 2019 17:08:48 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 724E86B026C; Thu, 11 Apr 2019 17:08:48 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by kanga.kvack.org (Postfix) with ESMTP id 436366B026A for ; Thu, 11 Apr 2019 17:08:48 -0400 (EDT) Received: by mail-qk1-f197.google.com with SMTP id g25so6168867qkm.22 for ; Thu, 11 Apr 2019 14:08:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=0Njb3cVhtrdJZi5FqSZVo9erCodEOGeR5p/8OpCuACM=; b=CsA5u2scsGW8VNhgr8blLsF4IjX2upaCQ+NB5DgrWHciuV/sJNpzf+uVLXXWtTzfp0 J08SKt3K6ZRQenJ13VEfGEVJNAMi7Qdws56de4nS4Lfsn8i0lfTbfl3MrZ9TfgxedGdj /HU/92ahBmJlM2yuvqzOZ1XUK0NEX2hgRCdGPfq3KjiqkYnJkJXIxmMSW+3ZVv2JMtB6 Urd/O6pbibAIePMrxxk3IYJlZshxAW+v2ruUWpamKjwUSGT2LNMa4gwtj+4+RcwIw7n3 J9s2RXzUbPwrr+CcOXGblzjmSNbPXXKMsoERkkMebZc784+ARs59aTxYuj3c2rAp+r2R bIvQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=jglisse@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: APjAAAV+GNZ1I6hXIH1e6Dgdq4/LpRKNJ6wDOKhKHeK6CY+woV4RGmI6 7IEJ2keHBDvDJtK5OtBLE1nnAqeoSHPVyCM6SMXM3gJg/8pTXRcg0d27JrFvGVK4m3LlshO+X8M yBsSGLVfNhI9WeM0zjr+1nb1i4nyW/C77fwgiEUM0+kC74bV8CIan5/CCBm2HR8FaAw== X-Received: by 2002:a0c:b15c:: with SMTP id r28mr42301991qvc.122.1555016928038; Thu, 11 Apr 2019 14:08:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTG3QUqHOVmSPOXxmE+80iweJjEm3E4AxV0LUROnZ3bZWE7ESJYX0hhPpgvzVE/Q44l1fF X-Received: by 2002:a0c:b15c:: with SMTP id r28mr42301883qvc.122.1555016927035; Thu, 11 Apr 2019 14:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555016927; cv=none; d=google.com; s=arc-20160816; b=NRsFo9SZDZkm8fVkyUg1dQ9VO+CzssjGP/qFT6dN/flwfSHRozTtOxlFFr1jWmQq2a EdGSzR4JgAQi99IrjrDNFQ+1b87gAJ7f/At3h1sbbTQA4fkQBtbNtvaFzj/6MBVNhmXS DFExUqkf0scWT/rPEMwwfb7wtNZBxpw/17hX7RowavVMGK6NVNLN8KO8WBUkUPs7B3O3 Lg5mcgzP9FlvKu1jpbVOarCi4OjxAFK7HaalX5ifkjuc/WVGFk/Yse0aI26WFGm1tb0Q M3nuoezajIkWb8JjtcC/WzgEn3uQEYDHZ1GAUm08Fzjc6P9e0Hdau71wmaTX4xbsO+VU UOSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=0Njb3cVhtrdJZi5FqSZVo9erCodEOGeR5p/8OpCuACM=; b=mmvU98fqNSL26KQLAV3RmMjHO1F0JJfdFvq4vrqNwEPVWaeWbEqxoUFi+Sr7+y/ED3 6e99Uq4yl2sPpj2KKYblf3CyBzKDCSA4guvakut8NNTrlaXrW0q/ALukPNWBKuOYnZWO lNdD+7ESEmJXS7F6ryu4N3AvmQ+/f+ptoTxTTfYc/LpOnikuD39v+t56K78fBEATthL4 GAZbW/GZ0sLKt8FoPA3DET6HcL9s7fxNT5AgyprK6ZcfR1ClfV4GFxT7HjJW57Xt+arO 5hmrcXjaDKUGYx+ltbm55jPo9I8xx/qC6wtBwJpN/+m3vjS/5bOBaduA3GPHFXDRS1XO 7+mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=jglisse@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id e3si1309901qvp.90.2019.04.11.14.08.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 14:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=jglisse@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 27B22307D910; Thu, 11 Apr 2019 21:08:46 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.20.6.236]) by smtp.corp.redhat.com (Postfix) with ESMTP id 99D0A5C219; Thu, 11 Apr 2019 21:08:44 +0000 (UTC) From: jglisse@redhat.com To: linux-kernel@vger.kernel.org Cc: =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org, John Hubbard , Jan Kara , Dan Williams , Alexander Viro , Johannes Thumshirn , Christoph Hellwig , Jens Axboe , Ming Lei , Dave Chinner , Jason Gunthorpe , Matthew Wilcox , =?utf-8?q?Ernesto_A_=2E_Fern=C3=A1nde?= =?utf-8?q?z?= Subject: [PATCH v1 01/15] fs/direct-io: fix trailing whitespace issues Date: Thu, 11 Apr 2019 17:08:20 -0400 Message-Id: <20190411210834.4105-2-jglisse@redhat.com> In-Reply-To: <20190411210834.4105-1-jglisse@redhat.com> References: <20190411210834.4105-1-jglisse@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 11 Apr 2019 21:08:46 +0000 (UTC) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Jérôme Glisse Remove bunch of trailing whitespace. Just hurts my eyes. Signed-off-by: Jérôme Glisse Cc: linux-fsdevel@vger.kernel.org Cc: linux-block@vger.kernel.org Cc: linux-mm@kvack.org Cc: John Hubbard Cc: Jan Kara Cc: Dan Williams Cc: Alexander Viro Cc: Johannes Thumshirn Cc: Christoph Hellwig Cc: Jens Axboe Cc: Ming Lei Cc: Dave Chinner Cc: Jason Gunthorpe Cc: Matthew Wilcox Cc: Ernesto A. Fernández --- fs/direct-io.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index 9bb015bc4a83..52a18858e3e7 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -196,7 +196,7 @@ static inline int dio_refill_pages(struct dio *dio, struct dio_submit *sdio) sdio->to = ((ret - 1) & (PAGE_SIZE - 1)) + 1; return 0; } - return ret; + return ret; } /* @@ -344,7 +344,7 @@ static void dio_aio_complete_work(struct work_struct *work) static blk_status_t dio_bio_complete(struct dio *dio, struct bio *bio); /* - * Asynchronous IO callback. + * Asynchronous IO callback. */ static void dio_bio_end_aio(struct bio *bio) { @@ -777,7 +777,7 @@ static inline int dio_bio_add_page(struct dio_submit *sdio) } return ret; } - + /* * Put cur_page under IO. The section of cur_page which is described by * cur_page_offset,cur_page_len is put into a BIO. The section of cur_page @@ -839,7 +839,7 @@ static inline int dio_send_cur_page(struct dio *dio, struct dio_submit *sdio, * An autonomous function to put a chunk of a page under deferred IO. * * The caller doesn't actually know (or care) whether this piece of page is in - * a BIO, or is under IO or whatever. We just take care of all possible + * a BIO, or is under IO or whatever. We just take care of all possible * situations here. The separation between the logic of do_direct_IO() and * that of submit_page_section() is important for clarity. Please don't break. * @@ -940,7 +940,7 @@ static inline void dio_zero_block(struct dio *dio, struct dio_submit *sdio, * We need to zero out part of an fs block. It is either at the * beginning or the end of the fs block. */ - if (end) + if (end) this_chunk_blocks = dio_blocks_per_fs_block - this_chunk_blocks; this_chunk_bytes = this_chunk_blocks << sdio->blkbits;