autofs/autofs-5.1.7-remove-unused-function-master_submount_list_empty.patch
DistroBaker a5adb69dac Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/autofs.git#25aaf0b69441b4e7370a195cbf1c7988d0abef3d
2021-03-26 02:05:45 +00:00

61 lines
1.9 KiB
Diff

autofs-5.1.7 - remove unused function master_submount_list_empty()
From: Ian Kent <raven@themaw.net>
This function is not used anywhere now, remove it.
Signed-off-by: Ian Kent <raven@themaw.net>
---
CHANGELOG | 1 +
daemon/master.c | 12 ------------
include/master.h | 1 -
3 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index 1c9e2a2d..002da042 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -45,6 +45,7 @@
- remove redundant local var from sun_mount().
- use mount_fullpath() in one spot in parse_mount().
- pass root length to mount_fullpath().
+- remove unused function master_submount_list_empty().
25/01/2021 autofs-5.1.7
- make bind mounts propagation slave by default.
diff --git a/daemon/master.c b/daemon/master.c
index 022fb9dd..af9cd79f 100644
--- a/daemon/master.c
+++ b/daemon/master.c
@@ -1119,18 +1119,6 @@ int master_read_master(struct master *master, time_t age)
return 1;
}
-int master_submount_list_empty(struct autofs_point *ap)
-{
- int res = 0;
-
- mounts_mutex_lock(ap);
- if (list_empty(&ap->submounts))
- res = 1;
- mounts_mutex_unlock(ap);
-
- return res;
-}
-
int master_notify_submount(struct autofs_point *ap, const char *path, enum states state)
{
struct mnt_list *this, *sbmnt;
diff --git a/include/master.h b/include/master.h
index 0806b372..2d727943 100644
--- a/include/master.h
+++ b/include/master.h
@@ -116,7 +116,6 @@ void master_free_mapent_sources(struct master_mapent *, unsigned int);
void master_free_mapent(struct master_mapent *);
struct master *master_new(const char *, unsigned int, unsigned int);
int master_read_master(struct master *, time_t);
-int master_submount_list_empty(struct autofs_point *ap);
int master_notify_submount(struct autofs_point *, const char *path, enum states);
void master_notify_state_change(struct master *, int);
int master_mount_mounts(struct master *, time_t);