Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3558823ybk; Tue, 19 May 2020 07:35:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBjKNKpZ+lgjDj7uSOjqt3UcFl1qH8aG/TPIIGt9mlp+B/erXP7TTLRRKphsMOrihH17lg X-Received: by 2002:a50:ee15:: with SMTP id g21mr17602016eds.170.1589898937955; Tue, 19 May 2020 07:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589898937; cv=none; d=google.com; s=arc-20160816; b=nYfYPM99qn2M2NJ4da6Tkwg82MIcFxM69PSYTMgwRGMqEbqebnv1zq2H3WbuxnQapy m9tG++73uaVtDn7XoMqbtixQNJLiLOlmo/9wwvJXsMFW1sufgQMxdisv/DrOd70IXkN9 zSQCiZzeshH0MnDKcg0KeKgetvL7VWX03KC/2C6rxhVrcZNHRp25X0/eH18y0emyFQHH gtczET5kjYd4hs2H4N/rWJMTLgQyPNuwrD/+x5o410cHRXDgVTWPIXyXdhjq3yMeuRNN SqkfpJ0pAY9Qlp4LHoUVbPnfq3IWWte6IdYQuZkjeXEJihUHsvl4o+iPi0GWJ9uJgsm/ SsQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0UX5oEl8u/8fe+X8t2nnEH7H1hNHB4asEznOvFo9ygI=; b=bECRCOQIJxyFmLbxvLXmUipQoDFn3saUUKoAkCP5rAK/ENQd+NHfN0mZ5AcuwQDsZX iw9ji7dD6rneplLZ/T0mSimNHxKwbTdH2r4AtN2orieS8cxJnFvXPKEMuRsJxqta1FJR dKBTc8L85jqDg9P9cmZirxDUJXDSqmkkYa3TLP8PR8j1iI8kH68bJ1Sx0gSi1JST1pM7 l4nLZ0Nss6K1QDRphhrAsMadjl2n2gEQgUE4Gi1/gxhUXqyH+US4KXCbQl2rdWqzFVCw 7yGqf31l3f2ZYfUWEwKwbjqjWHb2v9KJze/25kuZr/MIZOlMmpLjcqK9E6ZvvoKFTFR6 3aGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 w25si8440083edl.165.2020.05.19.07.35.13; Tue, 19 May 2020 07:35:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728855AbgESOdZ (ORCPT + 99 others); Tue, 19 May 2020 10:33:25 -0400 Received: from verein.lst.de ([213.95.11.211]:44330 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbgESOdZ (ORCPT ); Tue, 19 May 2020 10:33:25 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 1ECA568C4E; Tue, 19 May 2020 16:33:22 +0200 (CEST) Date: Tue, 19 May 2020 16:33:21 +0200 From: Christoph Hellwig To: Stefan Haberland Cc: hch@lst.de, axboe@kernel.dk, hoeppner@linux.ibm.com, linux-s390@vger.kernel.org, heiko.carstens@de.ibm.com, gor@linux.ibm.com, linux-kernel@vger.kernel.org, borntraeger@de.ibm.com Subject: [PATCH 3/2] block: remove ioctl_by_bdev Message-ID: <20200519143321.GB16127@lst.de> References: <20200519142259.102279-1-sth@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200519142259.102279-1-sth@linux.ibm.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No callers left. Signed-off-by: Christoph Hellwig --- fs/block_dev.c | 12 ------------ include/linux/fs.h | 1 - 2 files changed, 13 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index ebd1507789d29..2eb92456a22e7 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -2166,18 +2166,6 @@ const struct file_operations def_blk_fops = { .fallocate = blkdev_fallocate, }; -int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg) -{ - int res; - mm_segment_t old_fs = get_fs(); - set_fs(KERNEL_DS); - res = blkdev_ioctl(bdev, 0, cmd, arg); - set_fs(old_fs); - return res; -} - -EXPORT_SYMBOL(ioctl_by_bdev); - /** * lookup_bdev - lookup a struct block_device by name * @pathname: special file representing the block device diff --git a/include/linux/fs.h b/include/linux/fs.h index 1a95e51588113..861ca61d728bc 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2636,7 +2636,6 @@ extern int sync_filesystem(struct super_block *); extern const struct file_operations def_blk_fops; extern const struct file_operations def_chr_fops; #ifdef CONFIG_BLOCK -extern int ioctl_by_bdev(struct block_device *, unsigned, unsigned long); extern int blkdev_ioctl(struct block_device *, fmode_t, unsigned, unsigned long); extern long compat_blkdev_ioctl(struct file *, unsigned, unsigned long); extern int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder); -- 2.26.2