mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [to-be-updated] fs-remove-unused-have_submounts-function.patch removed from -mm tree
@ 2016-09-30 18:38 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-09-30 18:38 UTC (permalink / raw)
  To: raven, ebiederm, osandov, viro, mm-commits


The patch titled
     Subject: fs: remove unused have_submounts() function
has been removed from the -mm tree.  Its filename was
     fs-remove-unused-have_submounts-function.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
From: Ian Kent <raven@themaw.net>
Subject: fs: remove unused have_submounts() function

Having added the have_local_submounts() function there are no remaining
users of have_submounts() so remove it.

Link: http://lkml.kernel.org/r/20160914061450.24714.99912.stgit@pluto.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/dcache.c            |   33 ---------------------------------
 include/linux/dcache.h |    1 -
 2 files changed, 34 deletions(-)

diff -puN fs/dcache.c~fs-remove-unused-have_submounts-function fs/dcache.c
--- a/fs/dcache.c~fs-remove-unused-have_submounts-function
+++ a/fs/dcache.c
@@ -1279,39 +1279,6 @@ rename_retry:
  * list is non-empty and continue searching.
  */
 
-static enum d_walk_ret check_mount(void *data, struct dentry *dentry)
-{
-	int *ret = data;
-	if (d_mountpoint(dentry)) {
-		*ret = 1;
-		return D_WALK_QUIT;
-	}
-	return D_WALK_CONTINUE;
-}
-
-/**
- * have_submounts - check for mounts over a dentry
- * @parent: dentry to check.
- *
- * Return true if the parent or its subdirectories contain
- * a mount point
- */
-int have_submounts(struct dentry *parent)
-{
-	int ret = 0;
-
-	d_walk(parent, &ret, check_mount, NULL);
-
-	return ret;
-}
-EXPORT_SYMBOL(have_submounts);
-
-/*
- * Search for at least 1 mount point in the dentry's subdirs.
- * We descend to the next level whenever the d_subdirs
- * list is non-empty and continue searching.
- */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-30 18:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-30 18:38 [to-be-updated] fs-remove-unused-have_submounts-function.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).