Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3440315imm; Thu, 17 May 2018 08:48:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq2LQfYWeVqVwev6caOFjeYzTCWunWG22gdJF6qJd2buoDFhvgYOi7FobaRhWE/a2s/p80h X-Received: by 2002:a17:902:10c:: with SMTP id 12-v6mr5739949plb.252.1526572111400; Thu, 17 May 2018 08:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526572111; cv=none; d=google.com; s=arc-20160816; b=FH+b05Lc2TfK9mYr1fhgLAq1pbatLo6LZXwFK4f3GmGBxlh/yzmnOd4s89ll0lmb8/ SbtX6WdcYuD8OAMUujC7B87ZWJFH7hEwmQrE+fQg9r2J+/IEMx6sW4vw2hia7tYVCyXu 7yklNH0aCGueh670Wn69GtJWwWLwlvyRjKVN4uoip9wkvZVFL73RS1VC9lLGP3GrEYom LNM/RUjBVKwn6A+DFlw9jqI/AQ6fsCeOaFrcADuYv5N4zAr7V90UvqEX8+VLXMWzZjZO Tz91ZXUfSSM3mfPFQgaBIBf4FxNvJPqcSB8wvl6wC5mbweaR6+nMzVMW5Ctep+t0RVeN sSfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=lGn/zyuYhiB+jTV3He6P5kaELM852TJ/0t/Q6NZPQ30=; b=ed88KhF8rYF32oPUb9ZaKqWmvfqwpDxhUEDljLGhpwNdz2k+ut8eYTEmpsLL96706C 0wu3jnqarpMT3JDB+Gqwzwz77ObBVwrYGcHP0iYHPJNu0jzChLAThx2ZI863+IiUyUGI e/umu7aTK4tueFbn5/N5tU2cVS6f/KykpnYlhq7QBAUymDqWC5qBPxv9oB9ymQMJmOXs fv7BsWcNN1BP5Vj5LTzRWx13qygVQ3PT6uRGx3FEhXYEuAas1p+QGzDUloHEMhYLt7pN x/A8g0ugLV64pvIg3rDsE5tNVRtHG45e9LsUygiWCkW8tLSItViPDDfp0s8n0fFx1xEk i+cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YYb5Nz6g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si4251892pgq.385.2018.05.17.08.48.16; Thu, 17 May 2018 08:48:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YYb5Nz6g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752535AbeEQPrl (ORCPT + 99 others); Thu, 17 May 2018 11:47:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:50534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752385AbeEQPrj (ORCPT ); Thu, 17 May 2018 11:47:39 -0400 Received: from tleilax.poochiereds.net (cpe-71-70-156-158.nc.res.rr.com [71.70.156.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ACFF12084E; Thu, 17 May 2018 15:47:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526572059; bh=2hMkuUJQlTheDUwzODFRqg8wwO1XpOHeFSMicPYnkBQ=; h=From:To:Cc:Subject:Date:From; b=YYb5Nz6gB+II56T6j3oYDNNvcNxF1r6LmrLnu5xSM+StwDhWmuCg4rKSL3mSz4HBB FivtCvUmL+3jTSBvacpbjYJOEYLxfKrljMQc/OoxHpiwCpIvM3n3aFDrzwRhAMUdBI cF5SzoF4tDbWp4dDN1+8pCBGpxO612n6tvqv+D8U= From: Jeff Layton To: viro@zeniv.linux.org.uk Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH] vfs: remove iterate_supers_type Date: Thu, 17 May 2018 11:47:37 -0400 Message-Id: <20180517154737.18877-1-jlayton@kernel.org> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jeff Layton Nothing calls this. Signed-off-by: Jeff Layton --- fs/super.c | 36 ------------------------------------ include/linux/fs.h | 2 -- 2 files changed, 38 deletions(-) diff --git a/fs/super.c b/fs/super.c index 30b7490bd049..456276033e59 100644 --- a/fs/super.c +++ b/fs/super.c @@ -631,42 +631,6 @@ void iterate_supers(void (*f)(struct super_block *, int), int arg) spin_unlock(&sb_lock); } -/** - * iterate_supers_type - call function for superblocks of given type - * @type: fs type - * @f: function to call - * @arg: argument to pass to it - * - * Scans the superblock list and calls given function, passing it - * locked superblock and given argument. - */ -void iterate_supers_type(struct file_system_type *type, - void (*f)(struct super_block *, void *), void *arg) -{ - struct super_block *sb, *p = NULL; - - spin_lock(&sb_lock); - hlist_for_each_entry(sb, &type->fs_supers, s_instances) { - sb->s_count++; - spin_unlock(&sb_lock); - - down_read(&sb->s_umount); - if (sb->s_root && (sb->s_flags & SB_BORN)) - f(sb, arg); - up_read(&sb->s_umount); - - spin_lock(&sb_lock); - if (p) - __put_super(p); - p = sb; - } - if (p) - __put_super(p); - spin_unlock(&sb_lock); -} - -EXPORT_SYMBOL(iterate_supers_type); - static struct super_block *__get_super(struct block_device *bdev, bool excl) { struct super_block *sb; diff --git a/include/linux/fs.h b/include/linux/fs.h index 7107d291d853..c4761eba3b44 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3116,8 +3116,6 @@ extern struct super_block *get_active_super(struct block_device *bdev); extern void drop_super(struct super_block *sb); extern void drop_super_exclusive(struct super_block *sb); extern void iterate_supers(void (*)(struct super_block *, int), int); -extern void iterate_supers_type(struct file_system_type *, - void (*)(struct super_block *, void *), void *); extern int dcache_dir_open(struct inode *, struct file *); extern int dcache_dir_close(struct inode *, struct file *); -- 2.17.0