Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp884459ybt; Wed, 8 Jul 2020 14:21:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSA/EQQ0Umv26lXBjPAxYTaBcjAHGMO6Z00YVgSSv8LMuxtzaA6qVXpouemOPZrR6a2GTJ X-Received: by 2002:a17:906:edb3:: with SMTP id sa19mr52451702ejb.21.1594243284198; Wed, 08 Jul 2020 14:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594243284; cv=none; d=google.com; s=arc-20160816; b=Rr6jP7j/3h0uEk9GZSu7Zg0q6rtReV85Sv4lukXNLaMT6dyq1TAMitHV0z4EKgkc8K pFJM2SZoMdRym6A5ELdqZG9dPhsMRTQVmh+3JUxLozXRpxFkku99Wsv74XufL3TigZRW xuZaMjrsenzOh2VRfbPecKsfEC9QkRz/l24i+pSP78gxwZsuOXwCyFcuDsFRcaq6i371 344bFSCc3N6rDOnWddaiWw9q1nLW/m+1yvVnapY0LiyYouD7Yo0RhIB8wV91T5GhhLwR BbC3/OqEwyVnXZNgztOksXRynIZmMm42RSvkT2/b7DryLBOd5g5O0ImIvS+1MpOOrMV6 Awzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7sTQsOdd1gCvGa7XilcQ4VRO3AmxK5h4idFf5KSIvHY=; b=HK7gQmrJcLJ6nhFdl/DWR1Kmxy8EXCwVBWiVHu2bnaro8FtTEEFt7yyHTtWY424gHl Vg4martsWEULQGAhvNvUgb5zbDhHpwGCrhwxm7zFDqcFLuGCDRvP12al+6ywnY8RRtwM SLKFairqa1utEtyJDvvHT2GpzTbfEWiK/5aPkW3qA5LoItgDaU06nMIIMF3lkzOmW0hr K+izlyAE07BBB+RFZqucCRCPM62Ok9rG8Iz+uPoNeN0AK9h8OjT9Bsmfy6ulaaVFXx9a LFTNwgDel/qvOvEnD/shvzdetQVJwKEbhEe8ah2cMEBlybsKRdwp3wA8sYQ1wwf7nYLs 7+LA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si646024ejg.42.2020.07.08.14.21.01; Wed, 08 Jul 2020 14:21:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726306AbgGHVT7 (ORCPT + 99 others); Wed, 8 Jul 2020 17:19:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:35518 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbgGHVT4 (ORCPT ); Wed, 8 Jul 2020 17:19:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 806EDAC91; Wed, 8 Jul 2020 21:19:55 +0000 (UTC) From: Goldwyn Rodrigues To: linux-btrfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, darrick.wong@oracle.com, hch@lst.de, cluster-devel@redhat.com, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, Goldwyn Rodrigues , Nikolay Borisov , Johannes Thumshirn Subject: [PATCH 4/6] fs: remove dio_end_io() Date: Wed, 8 Jul 2020 16:19:24 -0500 Message-Id: <20200708211926.7706-5-rgoldwyn@suse.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200708211926.7706-1-rgoldwyn@suse.de> References: <20200708211926.7706-1-rgoldwyn@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Goldwyn Rodrigues Since we removed the last user of dio_end_io(), remove the helper function dio_end_io(). Reviewed-by: Nikolay Borisov Reviewed-by: Johannes Thumshirn Reviewed-by: Christoph Hellwig Signed-off-by: Goldwyn Rodrigues --- fs/direct-io.c | 19 ------------------- include/linux/fs.h | 2 -- 2 files changed, 21 deletions(-) diff --git a/fs/direct-io.c b/fs/direct-io.c index 6d5370eac2a8..1543b5af400e 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -386,25 +386,6 @@ static void dio_bio_end_io(struct bio *bio) spin_unlock_irqrestore(&dio->bio_lock, flags); } -/** - * dio_end_io - handle the end io action for the given bio - * @bio: The direct io bio thats being completed - * - * This is meant to be called by any filesystem that uses their own dio_submit_t - * so that the DIO specific endio actions are dealt with after the filesystem - * has done it's completion work. - */ -void dio_end_io(struct bio *bio) -{ - struct dio *dio = bio->bi_private; - - if (dio->is_async) - dio_bio_end_aio(bio); - else - dio_bio_end_io(bio); -} -EXPORT_SYMBOL_GPL(dio_end_io); - static inline void dio_bio_alloc(struct dio *dio, struct dio_submit *sdio, struct block_device *bdev, diff --git a/include/linux/fs.h b/include/linux/fs.h index 3f881a892ea7..9b3f250d634c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3202,8 +3202,6 @@ enum { DIO_SKIP_HOLES = 0x02, }; -void dio_end_io(struct bio *bio); - ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, struct block_device *bdev, struct iov_iter *iter, get_block_t get_block, -- 2.26.2