Skip to contentSkip to conversation

autofs4 - rename autofs4 to autofs

RFC PATCH In review Ian Kent 2 participants 12 messages Jul 1, 2013 – Jul 8, 2013

Subsystems (17)
Arm (32-bit) x86 VFS PowerPC +13 more subsystems
lore
Share & tools
lore

Ian Kent

author maintainer
#0 lore raw

cover autofs4 - rename autofs4 to autofs

The autofs4 kernel module provides function for autofs version 3, 4 and 5 and autofs module has long since been removed. Now we're left with a misnamed module. Appart from the name another problem this presents is that module autoload doesn't work because of the mismatch of the directory name and the name of the file system provided by the module.

So autofs4 should be renamed to autofs but I've held back doing it because of the potential disruption that could occur with a change like this.

The issues are somewhat reduced now because systemd needs the autofs module at startup and because of the autoload issue it is easier to just compile the module into the kernel which is what is done in some cases.

The big question for me is whether to leave a build stub in the autofs4 directory along with a warning in Kconfig that the stub will be removed after two kernel versions or just straight out rename it and be done with it.

The series here leaves a stub but I'd like comments thoughts on whether to use the stub or just rename the module?

---

Ian Kent (7):
autofs4 - coding style fixes
autofs4 - fix string.h include in auto_dev-ioctl.h autofs4 - move linux/auto_dev-ioctl.h to uapi/linux autofs - merge auto_fs.h and auto_fs4.h autofs - use autofs instead of autofs4 everywhere autofs - rename module autofs4 to autofs autofs - change CONFIG_AUTOFS4_FS to CONFIG_AUTOFS_FS

 MAINTAINERS                                  |    4 
 arch/arm/configs/at91rm9200_defconfig        |    2 
 arch/arm/configs/bcm_defconfig               |    2 
 arch/arm/configs/cns3420vb_defconfig         |    2 
 arch/arm/configs/colibri_pxa270_defconfig    |    2 
 arch/arm/configs/da8xx_omapl_defconfig       |    2 
 arch/arm/configs/davinci_all_defconfig       |    2 
 arch/arm/configs/ebsa110_defconfig           |    2 
 arch/arm/configs/ezx_defconfig               |    2 
 arch/arm/configs/footbridge_defconfig        |    2 
 arch/arm/configs/imote2_defconfig            |    2 
 arch/arm/configs/imx_v6_v7_defconfig         |    2 
 arch/arm/configs/lpc32xx_defconfig           |    2 
 arch/arm/configs/mini2440_defconfig          |    2 
 arch/arm/configs/omap1_defconfig             |    2 
 arch/arm/configs/rpc_defconfig               |    2 
 arch/arm/configs/s3c2410_defconfig           |    2 
 arch/arm/configs/spear13xx_defconfig         |    2 
 arch/arm/configs/spear3xx_defconfig          |    2 
 arch/arm/configs/spear6xx_defconfig          |    2 
 arch/arm/configs/trizeps4_defconfig          |    2 
 arch/ia64/configs/bigsur_defconfig           |    2 
 arch/ia64/configs/generic_defconfig          |    2 
 arch/ia64/configs/gensparse_defconfig        |    2 
 arch/ia64/configs/tiger_defconfig            |    2 
 arch/ia64/configs/xen_domu_defconfig         |    2 
 arch/m68k/configs/amiga_defconfig            |    2 
 arch/m68k/configs/apollo_defconfig           |    2 
 arch/m68k/configs/atari_defconfig            |    2 
 arch/m68k/configs/bvme6000_defconfig         |    2 
 arch/m68k/configs/hp300_defconfig            |    2 
 arch/m68k/configs/mac_defconfig              |    2 
 arch/m68k/configs/multi_defconfig            |    2 
 arch/m68k/configs/mvme147_defconfig          |    2 
 arch/m68k/configs/mvme16x_defconfig          |    2 
 arch/m68k/configs/q40_defconfig              |    2 
 arch/m68k/configs/sun3_defconfig             |    2 
 arch/m68k/configs/sun3x_defconfig            |    2 
 arch/mips/configs/bcm47xx_defconfig          |    2 
 arch/mips/configs/bigsur_defconfig           |    2 
 arch/mips/configs/capcella_defconfig         |    2 
 arch/mips/configs/e55_defconfig              |    2 
 arch/mips/configs/fuloong2e_defconfig        |    2 
 arch/mips/configs/ip22_defconfig             |    2 
 arch/mips/configs/ip32_defconfig             |    2 
 arch/mips/configs/jazz_defconfig             |    2 
 arch/mips/configs/lemote2f_defconfig         |    2 
 arch/mips/configs/markeins_defconfig         |    2 
 arch/mips/configs/mpc30x_defconfig           |    2 
 arch/mips/configs/mtx1_defconfig             |    2 
 arch/mips/configs/nlm_xlp_defconfig          |    2 
 arch/mips/configs/nlm_xlr_defconfig          |    2 
 arch/mips/configs/rm200_defconfig            |    2 
 arch/mips/configs/tb0219_defconfig           |    2 
 arch/mips/configs/tb0226_defconfig           |    2 
 arch/mips/configs/tb0287_defconfig           |    2 
 arch/mips/configs/workpad_defconfig          |    2 
 arch/parisc/configs/712_defconfig            |    2 
 arch/parisc/configs/a500_defconfig           |    2 
 arch/parisc/configs/b180_defconfig           |    2 
 arch/parisc/configs/c3000_defconfig          |    2 
 arch/powerpc/configs/40x/virtex_defconfig    |    2 
 arch/powerpc/configs/44x/sam440ep_defconfig  |    2 
 arch/powerpc/configs/44x/virtex5_defconfig   |    2 
 arch/powerpc/configs/85xx/stx_gp3_defconfig  |    2 
 arch/powerpc/configs/86xx/sbc8641d_defconfig |    2 
 arch/powerpc/configs/c2k_defconfig           |    2 
 arch/powerpc/configs/cell_defconfig          |    2 
 arch/powerpc/configs/ep8248e_defconfig       |    2 
 arch/powerpc/configs/mgcoge_defconfig        |    2 
 arch/powerpc/configs/mpc8272_ads_defconfig   |    2 
 arch/powerpc/configs/pasemi_defconfig        |    2 
 arch/powerpc/configs/pmac32_defconfig        |    2 
 arch/powerpc/configs/ppc64_defconfig         |    2 
 arch/powerpc/configs/ppc64e_defconfig        |    2 
 arch/powerpc/configs/ppc6xx_defconfig        |    2 
 arch/powerpc/configs/pq2fads_defconfig       |    2 
 arch/powerpc/configs/ps3_defconfig           |    2 
 arch/powerpc/configs/pseries_defconfig       |    2 
 arch/score/configs/spct6600_defconfig        |    2 
 arch/sh/configs/espt_defconfig               |    2 
 arch/sh/configs/sdk7780_defconfig            |    2 
 arch/sh/configs/sdk7786_defconfig            |    2 
 arch/sh/configs/sh03_defconfig               |    2 
 arch/sh/configs/sh7763rdp_defconfig          |    2 
 arch/sparc/configs/sparc32_defconfig         |    2 
 arch/tile/configs/tilegx_defconfig           |    2 
 arch/tile/configs/tilepro_defconfig          |    2 
 arch/um/defconfig                            |    2 
 arch/x86/configs/i386_defconfig              |    2 
 arch/x86/configs/x86_64_defconfig            |    2 
 arch/xtensa/configs/common_defconfig         |    1 
 arch/xtensa/configs/iss_defconfig            |    1 
 arch/xtensa/configs/s6105_defconfig          |    1 
 fs/Kconfig                                   |    1 
 fs/Makefile                                  |    1 
 fs/autofs/Kconfig                            |   19 +
 fs/autofs/Makefile                           |    7 
 fs/autofs/autofs_i.h                         |  341 ++++++++++
 fs/autofs/dev-ioctl.c                        |  759 ++++++++++++++++++++++
 fs/autofs/expire.c                           |  561 ++++++++++++++++
 fs/autofs/init.c                             |   49 +
 fs/autofs/inode.c                            |  368 +++++++++++
 fs/autofs/root.c                             |  898 ++++++++++++++++++++++++++
 fs/autofs/symlink.c                          |   21 +
 fs/autofs/waitq.c                            |  570 +++++++++++++++++
 fs/autofs4/Kconfig                           |   31 +
 fs/autofs4/Makefile                          |   10 
 fs/autofs4/autofs_i.h                        |  341 ----------
 fs/autofs4/dev-ioctl.c                       |  760 ----------------------
 fs/autofs4/expire.c                          |  562 ----------------
 fs/autofs4/init.c                            |   52 --
 fs/autofs4/inode.c                           |  371 -----------
 fs/autofs4/root.c                            |  898 --------------------------
 fs/autofs4/symlink.c                         |   24 -
 fs/autofs4/waitq.c                           |  572 -----------------
 fs/compat_ioctl.c                            |    1 
 include/linux/auto_dev-ioctl.h               |  229 -------
 include/linux/auto_fs.h                      |    5 
 include/uapi/linux/auto_dev-ioctl.h          |  224 ++++++
 include/uapi/linux/auto_fs.h                 |  156 ++++-
 include/uapi/linux/auto_fs4.h                |  158 -----
 122 files changed, 4090 insertions(+), 4086 deletions(-)
 create mode 100644 fs/autofs/Kconfig
 create mode 100644 fs/autofs/Makefile
 create mode 100644 fs/autofs/autofs_i.h
 create mode 100644 fs/autofs/dev-ioctl.c
 create mode 100644 fs/autofs/expire.c
 create mode 100644 fs/autofs/init.c
 create mode 100644 fs/autofs/inode.c
 create mode 100644 fs/autofs/root.c
 create mode 100644 fs/autofs/symlink.c
 create mode 100644 fs/autofs/waitq.c
 delete mode 100644 fs/autofs4/autofs_i.h
 delete mode 100644 fs/autofs4/dev-ioctl.c
 delete mode 100644 fs/autofs4/expire.c
 delete mode 100644 fs/autofs4/init.c
 delete mode 100644 fs/autofs4/inode.c
 delete mode 100644 fs/autofs4/root.c
 delete mode 100644 fs/autofs4/symlink.c
 delete mode 100644 fs/autofs4/waitq.c
 delete mode 100644 include/linux/auto_dev-ioctl.h
 create mode 100644 include/uapi/linux/auto_dev-ioctl.h
Signature · 1 line
Signature
author maintainer
#1 lore raw

RFC PATCH 1/7 autofs4 - coding style fixes

Try and make the coding style completely consistent throughtout the autofs module and inline with kernel coding style recommendations.

---
 fs/autofs4/autofs_i.h   |   30 +++++++++++++++---------------
 fs/autofs4/expire.c     |   38 +++++++++++++++++++-------------------
 fs/autofs4/init.c       |    5 +----
 fs/autofs4/inode.c      |    5 +----
 fs/autofs4/root.c       |   22 +++++++++++-----------
 fs/autofs4/symlink.c    |    5 +----
 fs/autofs4/waitq.c      |   14 ++++++--------
 include/linux/auto_fs.h |    5 +----
 8 files changed, 55 insertions(+), 69 deletions(-)
fs/autofs4/autofs_i.h +15 -15
index 16d3288..76b8097 100644
@@ -1,7 +1,4 @@
-/* -*- c -*- ------------------------------------------------------------- *
- *   
- * linux/fs/autofs/autofs_i.h
- *
+/*
  *   Copyright 1997-1998 Transmeta Corporation - All Rights Reserved
  *   Copyright 2005-2006 Ian Kent <[email protected]>
  *
@@ -51,12 +48,14 @@
 	printk(KERN_ERR "pid %d: %s: " fmt "\n",	\
 		current->pid, __func__, ##__VA_ARGS__)
 
-/* Unified info structure.  This is pointed to by both the dentry and
-   inode structures.  Each file in the filesystem has an instance of this
-   structure.  It holds a reference to the dentry, so dentries are never
-   flushed while the file exists.  All name lookups are dealt with at the
-   dentry level, although the filesystem can interfere in the validation
-   process.  Readdir is implemented by traversing the dentry lists. */
+/*
+ * Unified info structure.  This is pointed to by both the dentry and
+ * inode structures.  Each file in the filesystem has an instance of this
+ * structure.  It holds a reference to the dentry, so dentries are never
+ * flushed while the file exists.  All name lookups are dealt with at the
+ * dentry level, although the filesystem can interfere in the validation
+ * process.  Readdir is implemented by traversing the dentry lists.
+ */
 struct autofs_info {
 	struct dentry	*dentry;
 	struct inode	*inode;
@@ -78,7 +77,7 @@ struct autofs_info {
 	kgid_t gid;
 };
 
-#define AUTOFS_INF_EXPIRING	(1<<0) /* dentry is in the process of expiring */
+#define AUTOFS_INF_EXPIRING	(1<<0) /* dentry in the process of expiring */
 #define AUTOFS_INF_PENDING	(1<<2) /* dentry pending mount */
 
 struct autofs_wait_queue {
@@ -138,7 +137,8 @@ static inline struct autofs_info *autofs4_dentry_ino(struct dentry *dentry)
    processes which do manipulations for us in user space sees the raw
    filesystem without "magic".) */
 
-static inline int autofs4_oz_mode(struct autofs_sb_info *sbi) {
+static inline int autofs4_oz_mode(struct autofs_sb_info *sbi)
+{
 	return sbi->catatonic || task_pgrp(current) == sbi->oz_pgrp;
 }
 
@@ -163,12 +163,12 @@ void autofs4_free_ino(struct autofs_info *);
 int is_autofs4_dentry(struct dentry *);
 int autofs4_expire_wait(struct dentry *dentry);
 int autofs4_expire_run(struct super_block *, struct vfsmount *,
-			struct autofs_sb_info *,
-			struct autofs_packet_expire __user *);
+		       struct autofs_sb_info *,
+		       struct autofs_packet_expire __user *);
 int autofs4_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
 			    struct autofs_sb_info *sbi, int when);
 int autofs4_expire_multi(struct super_block *, struct vfsmount *,
-			struct autofs_sb_info *, int __user *);
+			 struct autofs_sb_info *, int __user *);
 struct dentry *autofs4_expire_direct(struct super_block *sb,
 				     struct vfsmount *mnt,
 				     struct autofs_sb_info *sbi, int how);
fs/autofs4/expire.c +19 -19
index 13ddec9..ddee37a 100644
@@ -1,7 +1,4 @@
-/* -*- c -*- --------------------------------------------------------------- *
- *
- * linux/fs/autofs/expire.c
- *
+/*
  *  Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
  *  Copyright 1999-2000 Jeremy Fitzhardinge <[email protected]>
  *  Copyright 2001-2006 Ian Kent <[email protected]>
@@ -18,7 +15,7 @@ static unsigned long now;
 
 /* Check if a dentry can be expired */
 static inline int autofs4_can_expire(struct dentry *dentry,
-					unsigned long timeout, int do_now)
+				     unsigned long timeout, int do_now)
 {
 	struct autofs_info *ino = autofs4_dentry_ino(dentry);
 
@@ -81,7 +78,7 @@ done:
  * Calculate and dget next entry in the subdirs list under root.
  */
 static struct dentry *get_next_positive_subdir(struct dentry *prev,
-						struct dentry *root)
+					       struct dentry *root)
 {
 	struct autofs_sb_info *sbi = autofs4_sbi(root->d_sb);
 	struct list_head *next;
@@ -128,7 +125,7 @@ cont:
  * Calculate and dget next entry in top down tree traversal.
  */
 static struct dentry *get_next_positive_dentry(struct dentry *prev,
-						struct dentry *root)
+					       struct dentry *root)
 {
 	struct autofs_sb_info *sbi = autofs4_sbi(root->d_sb);
 	struct list_head *next;
@@ -194,9 +191,9 @@ again:
  * autofs submounts.
  */
 static int autofs4_direct_busy(struct vfsmount *mnt,
-				struct dentry *top,
-				unsigned long timeout,
-				int do_now)
+			       struct dentry *top,
+			       unsigned long timeout,
+			       int do_now)
 {
 	DPRINTK("top %p %.*s",
 		top, (int) top->d_name.len, top->d_name.name);
@@ -216,7 +213,8 @@ static int autofs4_direct_busy(struct vfsmount *mnt,
 	return 0;
 }
 
-/* Check a directory tree of mount points for busyness
+/*
+ * Check a directory tree of mount points for busyness
  * The tree is not busy iff no mountpoints are busy
  */
 static int autofs4_tree_busy(struct vfsmount *mnt,
@@ -387,8 +385,8 @@ struct dentry *autofs4_expire_indirect(struct super_block *sb,
 		 *	   offset (autofs-5.0+).
 		 */
 		if (d_mountpoint(dentry)) {
-			DPRINTK("checking mountpoint %p %.*s",
-				dentry, (int)dentry->d_name.len, dentry->d_name.name);
+			DPRINTK("checking mountpoint %p %.*s", dentry,
+				(int)dentry->d_name.len, dentry->d_name.name);
 
 			/* Can we umount this guy */
 			if (autofs4_mount_busy(mnt, dentry))
@@ -485,9 +483,9 @@ int autofs4_expire_wait(struct dentry *dentry)
 
 /* Perform an expiry operation */
 int autofs4_expire_run(struct super_block *sb,
-		      struct vfsmount *mnt,
-		      struct autofs_sb_info *sbi,
-		      struct autofs_packet_expire __user *pkt_p)
+		       struct vfsmount *mnt,
+		       struct autofs_sb_info *sbi,
+		       struct autofs_packet_expire __user *pkt_p)
 {
 	struct autofs_packet_expire pkt;
 	struct autofs_info *ino;
@@ -507,7 +505,7 @@ int autofs4_expire_run(struct super_block *sb,
 	pkt.name[pkt.len] = '\0';
 	dput(dentry);
 
-	if ( copy_to_user(pkt_p, &pkt, sizeof(struct autofs_packet_expire)) )
+	if (copy_to_user(pkt_p, &pkt, sizeof(struct autofs_packet_expire)))
 		ret = -EFAULT;
 
 	spin_lock(&sbi->fs_lock);
@@ -547,8 +545,10 @@ int autofs4_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
 	return ret;
 }
 
-/* Call repeatedly until it returns -EAGAIN, meaning there's nothing
-   more to be done */
+/*
+ * Call repeatedly until it returns -EAGAIN, meaning there's nothing
+ * more to be done.
+ */
 int autofs4_expire_multi(struct super_block *sb, struct vfsmount *mnt,
 			struct autofs_sb_info *sbi, int __user *arg)
 {
fs/autofs4/init.c +1 -4
index b3db517..5a66322 100644
@@ -1,7 +1,4 @@
-/* -*- c -*- --------------------------------------------------------------- *
- *
- * linux/fs/autofs/init.c
- *
+/*
  *  Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
  *
  * This file is part of the Linux kernel and is made available under
fs/autofs4/inode.c +1 -4
index 1b045ec..eafdf6e 100644
@@ -1,7 +1,4 @@
-/* -*- c -*- --------------------------------------------------------------- *
- *
- * linux/fs/autofs/inode.c
- *
+/*
  *  Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
  *  Copyright 2005-2006 Ian Kent <[email protected]>
  *
fs/autofs4/root.c +11 -11
index ca8e555..a5b3825 100644
@@ -1,7 +1,4 @@
-/* -*- c -*- --------------------------------------------------------------- *
- *
- * linux/fs/autofs/root.c
- *
+/*
  *  Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
  *  Copyright 1999-2000 Jeremy Fitzhardinge <[email protected]>
  *  Copyright 2001-2006 Ian Kent <[email protected]>
@@ -466,7 +463,8 @@ static int autofs4_d_manage(struct dentry *dentry, bool rcu_walk)
 }
 
 /* Lookups in the root directory */
-static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
+static struct dentry *autofs4_lookup(struct inode *dir,
+				     struct dentry *dentry, unsigned int flags)
 {
 	struct autofs_sb_info *sbi;
 	struct autofs_info *ino;
@@ -743,7 +741,7 @@ static int autofs4_dir_mkdir(struct inode *dir, struct dentry *dentry, umode_t m
 /* Get/set timeout ioctl() operation */
 #ifdef CONFIG_COMPAT
 static inline int autofs4_compat_get_set_timeout(struct autofs_sb_info *sbi,
-					 compat_ulong_t __user *p)
+						 compat_ulong_t __user *p)
 {
 	int rv;
 	unsigned long ntimeout;
@@ -762,7 +760,7 @@ static inline int autofs4_compat_get_set_timeout(struct autofs_sb_info *sbi,
 #endif
 
 static inline int autofs4_get_set_timeout(struct autofs_sb_info *sbi,
-					 unsigned long __user *p)
+					  unsigned long __user *p)
 {
 	int rv;
 	unsigned long ntimeout;
@@ -780,13 +778,15 @@ static inline int autofs4_get_set_timeout(struct autofs_sb_info *sbi,
 }
 
 /* Return protocol version */
-static inline int autofs4_get_protover(struct autofs_sb_info *sbi, int __user *p)
+static inline int autofs4_get_protover(struct autofs_sb_info *sbi,
+				       int __user *p)
 {
 	return put_user(sbi->version, p);
 }
 
 /* Return protocol sub version */
-static inline int autofs4_get_protosubver(struct autofs_sb_info *sbi, int __user *p)
+static inline int autofs4_get_protosubver(struct autofs_sb_info *sbi,
+					  int __user *p)
 {
 	return put_user(sbi->sub_version, p);
 }
@@ -882,7 +882,7 @@ static long autofs4_root_ioctl(struct file *filp,
 
 #ifdef CONFIG_COMPAT
 static long autofs4_root_compat_ioctl(struct file *filp,
-			     unsigned int cmd, unsigned long arg)
+				      unsigned int cmd, unsigned long arg)
 {
 	struct inode *inode = file_inode(filp);
 	int ret;
@@ -891,7 +891,7 @@ static long autofs4_root_compat_ioctl(struct file *filp,
 		ret = autofs4_root_ioctl_unlocked(inode, filp, cmd, arg);
 	else
 		ret = autofs4_root_ioctl_unlocked(inode, filp, cmd,
-			(unsigned long)compat_ptr(arg));
+					      (unsigned long) compat_ptr(arg));
 
 	return ret;
 }
fs/autofs4/symlink.c +1 -4
index f27c094..063b240 100644
@@ -1,7 +1,4 @@
-/* -*- c -*- --------------------------------------------------------------- *
- *
- * linux/fs/autofs/symlink.c
- *
+/*
  *  Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
  *
  * This file is part of the Linux kernel and is made available under
fs/autofs4/waitq.c +6 -8
index 309ca6b..f1fb9d7 100644
@@ -1,7 +1,4 @@
-/* -*- c -*- --------------------------------------------------------------- *
- *
- * linux/fs/autofs/waitq.c
- *
+/*
  *  Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
  *  Copyright 2001-2006 Ian Kent <[email protected]>
  *
@@ -103,7 +100,8 @@ static void autofs4_notify_daemon(struct autofs_sb_info *sbi,
 	size_t pktsz;
 
 	DPRINTK("wait id = 0x%08lx, name = %.*s, type=%d",
-		(unsigned long) wq->wait_queue_token, wq->name.len, wq->name.name, type);
+		(unsigned long) wq->wait_queue_token,
+		wq->name.len, wq->name.name, type);
 
 	memset(&pkt,0,sizeof pkt); /* For security reasons */
 
@@ -237,7 +235,7 @@ autofs4_find_wait(struct autofs_sb_info *sbi, struct qstr *qstr)
 		if (wq->name.hash == qstr->hash &&
 		    wq->name.len == qstr->len &&
 		    wq->name.name &&
-			 !memcmp(wq->name.name, qstr->name, qstr->len))
+		    !memcmp(wq->name.name, qstr->name, qstr->len))
 			break;
 	}
 	return wq;
@@ -346,8 +344,8 @@ static int validate_request(struct autofs_wait_queue **wait,
 	return 1;
 }
 
-int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,
-		enum autofs_notify notify)
+int autofs4_wait(struct autofs_sb_info *sbi,
+		 struct dentry *dentry, enum autofs_notify notify)
 {
 	struct autofs_wait_queue *wq;
 	struct qstr qstr;
include/linux/auto_fs.h +1 -4
index fcd704d..077f2c4 100644
@@ -1,7 +1,4 @@
-/* -*- linux-c -*- ------------------------------------------------------- *
- *   
- * linux/include/linux/auto_fs.h
- *
+/*
  *   Copyright 1997 Transmeta Corporation - All Rights Reserved
  *
  * This file is part of the Linux kernel and is made available under
author maintainer
#2 lore raw

RFC PATCH 2/7 autofs4 - fix string.h include in auto_dev-ioctl.h

In reply to Ian Kent

Since including linux/string.h will now do the right thing remove the conditional check.

---
 include/linux/auto_dev-ioctl.h |    5 -----
 1 file changed, 5 deletions(-)
include/linux/auto_dev-ioctl.h +0 -5
index 850f39b..fe4f373 100644
@@ -11,12 +11,7 @@
 #define _LINUX_AUTO_DEV_IOCTL_H
 
 #include <linux/auto_fs.h>
-
-#ifdef __KERNEL__
 #include <linux/string.h>
-#else
-#include <string.h>
-#endif /* __KERNEL__ */
 
 #define AUTOFS_DEVICE_NAME		"autofs"
 
author maintainer
#3 lore raw

RFC PATCH 3/7 autofs4 - move linux/auto_dev-ioctl.h to uapi/linux

In reply to Ian Kent

Since linux/auto_dev-ioctl.h wasn't included in include/linux/Kbuild (although I should have added it) it wasn't moved to uapi/linux as part of the uapi series.

---
 include/linux/auto_dev-ioctl.h      |  224 -----------------------------------
 include/uapi/linux/auto_dev-ioctl.h |  224 +++++++++++++++++++++++++++++++++++
 2 files changed, 224 insertions(+), 224 deletions(-)
 delete mode 100644 include/linux/auto_dev-ioctl.h
 create mode 100644 include/uapi/linux/auto_dev-ioctl.h
include/linux/auto_dev-ioctl.h deleted +0 -224
deleted file mode 100644
index fe4f373..0000000
@@ -1,224 +0,0 @@
-/*
- * Copyright 2008 Red Hat, Inc. All rights reserved.
- * Copyright 2008 Ian Kent <[email protected]>
- *
- * This file is part of the Linux kernel and is made available under
- * the terms of the GNU General Public License, version 2, or at your
- * option, any later version, incorporated herein by reference.
- */
-
-#ifndef _LINUX_AUTO_DEV_IOCTL_H
-#define _LINUX_AUTO_DEV_IOCTL_H
-
-#include <linux/auto_fs.h>
-#include <linux/string.h>
-
-#define AUTOFS_DEVICE_NAME		"autofs"
-
-#define AUTOFS_DEV_IOCTL_VERSION_MAJOR	1
-#define AUTOFS_DEV_IOCTL_VERSION_MINOR	0
-
-#define AUTOFS_DEVID_LEN		16
-
-#define AUTOFS_DEV_IOCTL_SIZE		sizeof(struct autofs_dev_ioctl)
-
-/*
- * An ioctl interface for autofs mount point control.
- */
-
-struct args_protover {
-	__u32	version;
-};
-
-struct args_protosubver {
-	__u32	sub_version;
-};
-
-struct args_openmount {
-	__u32	devid;
-};
-
-struct args_ready {
-	__u32	token;
-};
-
-struct args_fail {
-	__u32	token;
-	__s32	status;
-};
-
-struct args_setpipefd {
-	__s32	pipefd;
-};
-
-struct args_timeout {
-	__u64	timeout;
-};
-
-struct args_requester {
-	__u32	uid;
-	__u32	gid;
-};
-
-struct args_expire {
-	__u32	how;
-};
-
-struct args_askumount {
-	__u32	may_umount;
-};
-
-struct args_ismountpoint {
-	union {
-		struct args_in {
-			__u32	type;
-		} in;
-		struct args_out {
-			__u32	devid;
-			__u32	magic;
-		} out;
-	};
-};
-
-/*
- * All the ioctls use this structure.
- * When sending a path size must account for the total length
- * of the chunk of memory otherwise is is the size of the
- * structure.
- */
-
-struct autofs_dev_ioctl {
-	__u32 ver_major;
-	__u32 ver_minor;
-	__u32 size;		/* total size of data passed in
-				 * including this struct */
-	__s32 ioctlfd;		/* automount command fd */
-
-	/* Command parameters */
-
-	union {
-		struct args_protover		protover;
-		struct args_protosubver		protosubver;
-		struct args_openmount		openmount;
-		struct args_ready		ready;
-		struct args_fail		fail;
-		struct args_setpipefd		setpipefd;
-		struct args_timeout		timeout;
-		struct args_requester		requester;
-		struct args_expire		expire;
-		struct args_askumount		askumount;
-		struct args_ismountpoint	ismountpoint;
-	};
-
-	char path[0];
-};
-
-static inline void init_autofs_dev_ioctl(struct autofs_dev_ioctl *in)
-{
-	memset(in, 0, sizeof(struct autofs_dev_ioctl));
-	in->ver_major = AUTOFS_DEV_IOCTL_VERSION_MAJOR;
-	in->ver_minor = AUTOFS_DEV_IOCTL_VERSION_MINOR;
-	in->size = sizeof(struct autofs_dev_ioctl);
-	in->ioctlfd = -1;
-	return;
-}
-
-/*
- * If you change this make sure you make the corresponding change
- * to autofs-dev-ioctl.c:lookup_ioctl()
- */
-enum {
-	/* Get various version info */
-	AUTOFS_DEV_IOCTL_VERSION_CMD = 0x71,
-	AUTOFS_DEV_IOCTL_PROTOVER_CMD,
-	AUTOFS_DEV_IOCTL_PROTOSUBVER_CMD,
-
-	/* Open mount ioctl fd */
-	AUTOFS_DEV_IOCTL_OPENMOUNT_CMD,
-
-	/* Close mount ioctl fd */
-	AUTOFS_DEV_IOCTL_CLOSEMOUNT_CMD,
-
-	/* Mount/expire status returns */
-	AUTOFS_DEV_IOCTL_READY_CMD,
-	AUTOFS_DEV_IOCTL_FAIL_CMD,
-
-	/* Activate/deactivate autofs mount */
-	AUTOFS_DEV_IOCTL_SETPIPEFD_CMD,
-	AUTOFS_DEV_IOCTL_CATATONIC_CMD,
-
-	/* Expiry timeout */
-	AUTOFS_DEV_IOCTL_TIMEOUT_CMD,
-
-	/* Get mount last requesting uid and gid */
-	AUTOFS_DEV_IOCTL_REQUESTER_CMD,
-
-	/* Check for eligible expire candidates */
-	AUTOFS_DEV_IOCTL_EXPIRE_CMD,
-
-	/* Request busy status */
-	AUTOFS_DEV_IOCTL_ASKUMOUNT_CMD,
-
-	/* Check if path is a mountpoint */
-	AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD,
-};
-
-#define AUTOFS_IOCTL 0x93
-
-#define AUTOFS_DEV_IOCTL_VERSION \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_VERSION_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_PROTOVER \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_PROTOVER_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_PROTOSUBVER \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_PROTOSUBVER_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_OPENMOUNT \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_OPENMOUNT_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_CLOSEMOUNT \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_CLOSEMOUNT_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_READY \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_READY_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_FAIL \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_FAIL_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_SETPIPEFD \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_SETPIPEFD_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_CATATONIC \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_CATATONIC_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_TIMEOUT \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_TIMEOUT_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_REQUESTER \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_REQUESTER_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_EXPIRE \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_EXPIRE_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_ASKUMOUNT \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_ASKUMOUNT_CMD, struct autofs_dev_ioctl)
-
-#define AUTOFS_DEV_IOCTL_ISMOUNTPOINT \
-	_IOWR(AUTOFS_IOCTL, \
-	      AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD, struct autofs_dev_ioctl)
-
-#endif	/* _LINUX_AUTO_DEV_IOCTL_H */
include/uapi/linux/auto_dev-ioctl.h new file +224 -0

224 lines not on this page · raw message

author maintainer
#4 lore raw

RFC PATCH 4/7 autofs - merge auto_fs.h and auto_fs4.h

In reply to Ian Kent

The autofs module has long since been removed so there's no need to have two separate include files for autofs.

---
 fs/autofs4/autofs_i.h         |    2 -
 fs/compat_ioctl.c             |    1 
 include/uapi/linux/auto_fs.h  |  156 +++++++++++++++++++++++++++++++++++++---
 include/uapi/linux/auto_fs4.h |  158 +----------------------------------------
 4 files changed, 149 insertions(+), 168 deletions(-)
fs/autofs4/autofs_i.h +1 -1
index 76b8097..1a79bc7 100644
@@ -10,7 +10,7 @@
 
 /* Internal header file for autofs */
 
-#include <linux/auto_fs4.h>
+#include <linux/auto_fs.h>
 #include <linux/auto_dev-ioctl.h>
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
fs/compat_ioctl.c +0 -1
index 5d19acf..43345ce 100644
@@ -38,7 +38,6 @@
 #include <linux/if_pppox.h>
 #include <linux/mtio.h>
 #include <linux/auto_fs.h>
-#include <linux/auto_fs4.h>
 #include <linux/tty.h>
 #include <linux/vt_kern.h>
 #include <linux/fb.h>
include/uapi/linux/auto_fs.h +144 -12

176 lines not on this page · raw message

include/uapi/linux/auto_fs4.h +4 -154

167 lines not on this page · raw message

author maintainer
#5 lore raw

RFC PATCH 5/7 autofs - use autofs instead of autofs4 everywhere

In reply to Ian Kent

Update naming within autofs source to be consistent by changing occurrences of autofs4 to autofs.

---
 fs/autofs4/autofs_i.h  |   92 +++++++++--------
 fs/autofs4/dev-ioctl.c |   18 ++-
 fs/autofs4/expire.c    |  128 ++++++++++++------------
 fs/autofs4/init.c      |   12 +-
 fs/autofs4/inode.c     |   46 ++++-----
 fs/autofs4/root.c      |  256 ++++++++++++++++++++++++------------------------
 fs/autofs4/symlink.c   |    6 +
 fs/autofs4/waitq.c     |   55 +++++-----
 8 files changed, 307 insertions(+), 306 deletions(-)
fs/autofs4/autofs_i.h +46 -46
index 1a79bc7..dcdd1d7 100644
@@ -123,29 +123,29 @@ struct autofs_sb_info {
 	struct list_head expiring_list;
 };
 
-static inline struct autofs_sb_info *autofs4_sbi(struct super_block *sb)
+static inline struct autofs_sb_info *autofs_sbi(struct super_block *sb)
 {
 	return (struct autofs_sb_info *)(sb->s_fs_info);
 }
 
-static inline struct autofs_info *autofs4_dentry_ino(struct dentry *dentry)
+static inline struct autofs_info *autofs_dentry_ino(struct dentry *dentry)
 {
 	return (struct autofs_info *)(dentry->d_fsdata);
 }
 
-/* autofs4_oz_mode(): do we see the man behind the curtain?  (The
+/* autofs_oz_mode(): do we see the man behind the curtain?  (The
    processes which do manipulations for us in user space sees the raw
    filesystem without "magic".) */
 
-static inline int autofs4_oz_mode(struct autofs_sb_info *sbi)
+static inline int autofs_oz_mode(struct autofs_sb_info *sbi)
 {
 	return sbi->catatonic || task_pgrp(current) == sbi->oz_pgrp;
 }
 
 /* Does a dentry have some pending activity? */
-static inline int autofs4_ispending(struct dentry *dentry)
+static inline int autofs_ispending(struct dentry *dentry)
 {
-	struct autofs_info *inf = autofs4_dentry_ino(dentry);
+	struct autofs_info *inf = autofs_dentry_ino(dentry);
 
 	if (inf->flags & AUTOFS_INF_PENDING)
 		return 1;
@@ -156,25 +156,25 @@ static inline int autofs4_ispending(struct dentry *dentry)
 	return 0;
 }
 
-struct inode *autofs4_get_inode(struct super_block *, umode_t);
-void autofs4_free_ino(struct autofs_info *);
+struct inode *autofs_get_inode(struct super_block *, umode_t);
+void autofs_free_ino(struct autofs_info *);
 
 /* Expiration */
-int is_autofs4_dentry(struct dentry *);
-int autofs4_expire_wait(struct dentry *dentry);
-int autofs4_expire_run(struct super_block *, struct vfsmount *,
-		       struct autofs_sb_info *,
-		       struct autofs_packet_expire __user *);
-int autofs4_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
-			    struct autofs_sb_info *sbi, int when);
-int autofs4_expire_multi(struct super_block *, struct vfsmount *,
-			 struct autofs_sb_info *, int __user *);
-struct dentry *autofs4_expire_direct(struct super_block *sb,
-				     struct vfsmount *mnt,
-				     struct autofs_sb_info *sbi, int how);
-struct dentry *autofs4_expire_indirect(struct super_block *sb,
-				       struct vfsmount *mnt,
-				       struct autofs_sb_info *sbi, int how);
+int is_autofs_dentry(struct dentry *);
+int autofs_expire_wait(struct dentry *dentry);
+int autofs_expire_run(struct super_block *, struct vfsmount *,
+		      struct autofs_sb_info *,
+		      struct autofs_packet_expire __user *);
+int autofs_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
+			   struct autofs_sb_info *sbi, int when);
+int autofs_expire_multi(struct super_block *, struct vfsmount *,
+			struct autofs_sb_info *, int __user *);
+struct dentry *autofs_expire_direct(struct super_block *sb,
+				    struct vfsmount *mnt,
+				    struct autofs_sb_info *sbi, int how);
+struct dentry *autofs_expire_indirect(struct super_block *sb,
+				      struct vfsmount *mnt,
+				      struct autofs_sb_info *sbi, int how);
 
 /* Device node initialization */
 
@@ -183,11 +183,11 @@ void autofs_dev_ioctl_exit(void);
 
 /* Operations structures */
 
-extern const struct inode_operations autofs4_symlink_inode_operations;
-extern const struct inode_operations autofs4_dir_inode_operations;
-extern const struct file_operations autofs4_dir_operations;
-extern const struct file_operations autofs4_root_operations;
-extern const struct dentry_operations autofs4_dentry_operations;
+extern const struct inode_operations autofs_symlink_inode_operations;
+extern const struct inode_operations autofs_dir_inode_operations;
+extern const struct file_operations autofs_dir_operations;
+extern const struct file_operations autofs_root_operations;
+extern const struct dentry_operations autofs_dentry_operations;
 
 /* VFS automount flags management functions */
 
@@ -265,9 +265,9 @@ static inline void managed_dentry_clear_managed(struct dentry *dentry)
 
 /* Initializing function */
 
-int autofs4_fill_super(struct super_block *, void *, int);
-struct autofs_info *autofs4_new_ino(struct autofs_sb_info *);
-void autofs4_clean_ino(struct autofs_info *);
+int autofs_fill_super(struct super_block *, void *, int);
+struct autofs_info *autofs_new_ino(struct autofs_sb_info *);
+void autofs_clean_ino(struct autofs_info *);
 
 static inline int autofs_prepare_pipe(struct file *pipe)
 {
@@ -282,16 +282,16 @@ static inline int autofs_prepare_pipe(struct file *pipe)
 
 /* Queue management functions */
 
-int autofs4_wait(struct autofs_sb_info *,struct dentry *, enum autofs_notify);
-int autofs4_wait_release(struct autofs_sb_info *,autofs_wqt_t,int);
-void autofs4_catatonic_mode(struct autofs_sb_info *);
+int autofs_wait(struct autofs_sb_info *,struct dentry *, enum autofs_notify);
+int autofs_wait_release(struct autofs_sb_info *,autofs_wqt_t,int);
+void autofs_catatonic_mode(struct autofs_sb_info *);
 
-static inline u32 autofs4_get_dev(struct autofs_sb_info *sbi)
+static inline u32 autofs_get_dev(struct autofs_sb_info *sbi)
 {
 	return new_encode_dev(sbi->sb->s_dev);
 }
 
-static inline u64 autofs4_get_ino(struct autofs_sb_info *sbi)
+static inline u64 autofs_get_ino(struct autofs_sb_info *sbi)
 {
 	return sbi->sb->s_root->d_inode->i_ino;
 }
@@ -301,10 +301,10 @@ static inline int simple_positive(struct dentry *dentry)
 	return dentry->d_inode && !d_unhashed(dentry);
 }
 
-static inline void __autofs4_add_expiring(struct dentry *dentry)
+static inline void __autofs_add_expiring(struct dentry *dentry)
 {
-	struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb);
-	struct autofs_info *ino = autofs4_dentry_ino(dentry);
+	struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
+	struct autofs_info *ino = autofs_dentry_ino(dentry);
 	if (ino) {
 		if (list_empty(&ino->expiring))
 			list_add(&ino->expiring, &sbi->expiring_list);
@@ -312,10 +312,10 @@ static inline void __autofs4_add_expiring(struct dentry *dentry)
 	return;
 }
 
-static inline void autofs4_add_expiring(struct dentry *dentry)
+static inline void autofs_add_expiring(struct dentry *dentry)
 {
-	struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb);
-	struct autofs_info *ino = autofs4_dentry_ino(dentry);
+	struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
+	struct autofs_info *ino = autofs_dentry_ino(dentry);
 	if (ino) {
 		spin_lock(&sbi->lookup_lock);
 		if (list_empty(&ino->expiring))
@@ -325,10 +325,10 @@ static inline void autofs4_add_expiring(struct dentry *dentry)
 	return;
 }
 
-static inline void autofs4_del_expiring(struct dentry *dentry)
+static inline void autofs_del_expiring(struct dentry *dentry)
 {
-	struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb);
-	struct autofs_info *ino = autofs4_dentry_ino(dentry);
+	struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb);
+	struct autofs_info *ino = autofs_dentry_ino(dentry);
 	if (ino) {
 		spin_lock(&sbi->lookup_lock);
 		if (!list_empty(&ino->expiring))
@@ -338,4 +338,4 @@ static inline void autofs4_del_expiring(struct dentry *dentry)
 	return;
 }
 
-extern void autofs4_kill_sb(struct super_block *);
+extern void autofs_kill_sb(struct super_block *);
fs/autofs4/dev-ioctl.c +9 -9
index 9183821..024389a 100644
@@ -160,7 +160,7 @@ static struct autofs_sb_info *autofs_dev_ioctl_sbi(struct file *f)
 
 	if (f) {
 		inode = file_inode(f);
-		sbi = autofs4_sbi(inode->i_sb);
+		sbi = autofs_sbi(inode->i_sb);
 	}
 	return sbi;
 }
@@ -217,7 +217,7 @@ static int test_by_dev(struct path *path, void *p)
 
 static int test_by_type(struct path *path, void *p)
 {
-	struct autofs_info *ino = autofs4_dentry_ino(path->dentry);
+	struct autofs_info *ino = autofs_dentry_ino(path->dentry);
 	return ino && ino->sbi->type & *(unsigned *)p;
 }
 
@@ -309,7 +309,7 @@ static int autofs_dev_ioctl_ready(struct file *fp,
 	autofs_wqt_t token;
 
 	token = (autofs_wqt_t) param->ready.token;
-	return autofs4_wait_release(sbi, token, 0);
+	return autofs_wait_release(sbi, token, 0);
 }
 
 /*
@@ -325,7 +325,7 @@ static int autofs_dev_ioctl_fail(struct file *fp,
 
 	token = (autofs_wqt_t) param->fail.token;
 	status = param->fail.status ? param->fail.status : -ENOENT;
-	return autofs4_wait_release(sbi, token, status);
+	return autofs_wait_release(sbi, token, status);
 }
 
 /*
@@ -397,7 +397,7 @@ static int autofs_dev_ioctl_catatonic(struct file *fp,
 				      struct autofs_sb_info *sbi,
 				      struct autofs_dev_ioctl *param)
 {
-	autofs4_catatonic_mode(sbi);
+	autofs_catatonic_mode(sbi);
 	return 0;
 }
 
@@ -444,10 +444,10 @@ static int autofs_dev_ioctl_requester(struct file *fp,
 	if (err)
 		goto out;
 
-	ino = autofs4_dentry_ino(path.dentry);
+	ino = autofs_dentry_ino(path.dentry);
 	if (ino) {
 		err = 0;
-		autofs4_expire_wait(path.dentry);
+		autofs_expire_wait(path.dentry);
 		spin_lock(&sbi->fs_lock);
 		param->requester.uid = from_kuid_munged(current_user_ns(), ino->uid);
 		param->requester.gid = from_kgid_munged(current_user_ns(), ino->gid);
@@ -472,7 +472,7 @@ static int autofs_dev_ioctl_expire(struct file *fp,
 	how = param->expire.how;
 	mnt = fp->f_path.mnt;
 
-	return autofs4_do_expire_multi(sbi->sb, mnt, sbi, how);
+	return autofs_do_expire_multi(sbi->sb, mnt, sbi, how);
 }
 
 /* Check if autofs mount point is in use */
@@ -686,7 +686,7 @@ static int _autofs_dev_ioctl(unsigned int command, struct autofs_dev_ioctl __use
 		 * Admin needs to be able to set the mount catatonic in
 		 * order to be able to perform the re-open.
 		 */
-		if (!autofs4_oz_mode(sbi) &&
+		if (!autofs_oz_mode(sbi) &&
 		    cmd != AUTOFS_DEV_IOCTL_CATATONIC_CMD) {
 			err = -EACCES;
 			fput(fp);
fs/autofs4/expire.c +64 -64

334 lines not on this page · raw message

fs/autofs4/init.c +6 -6
index 5a66322..51232a9 100644
@@ -14,18 +14,18 @@
 static struct dentry *autofs_mount(struct file_system_type *fs_type,
 	int flags, const char *dev_name, void *data)
 {
-	return mount_nodev(fs_type, flags, data, autofs4_fill_super);
+	return mount_nodev(fs_type, flags, data, autofs_fill_super);
 }
 
 static struct file_system_type autofs_fs_type = {
 	.owner		= THIS_MODULE,
 	.name		= "autofs",
 	.mount		= autofs_mount,
-	.kill_sb	= autofs4_kill_sb,
+	.kill_sb	= autofs_kill_sb,
 };
 MODULE_ALIAS_FS("autofs");
 
-static int __init init_autofs4_fs(void)
+static int __init init_autofs_fs(void)
 {
 	int err;
 
@@ -38,12 +38,12 @@ static int __init init_autofs4_fs(void)
 	return err;
 }
 
-static void __exit exit_autofs4_fs(void)
+static void __exit exit_autofs_fs(void)
 {
 	autofs_dev_ioctl_exit();
 	unregister_filesystem(&autofs_fs_type);
 }
 
-module_init(init_autofs4_fs) 
-module_exit(exit_autofs4_fs)
+module_init(init_autofs_fs)
+module_exit(exit_autofs_fs)
 MODULE_LICENSE("GPL");
fs/autofs4/inode.c +23 -23

132 lines not on this page · raw message

fs/autofs4/root.c +128 -128

644 lines not on this page · raw message

fs/autofs4/symlink.c +3 -3
index 063b240..9d728bf 100644
@@ -9,13 +9,13 @@
 
 #include "autofs_i.h"
 
-static void *autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
+static void *autofs_follow_link(struct dentry *dentry, struct nameidata *nd)
 {
 	nd_set_link(nd, dentry->d_inode->i_private);
 	return NULL;
 }
 
-const struct inode_operations autofs4_symlink_inode_operations = {
+const struct inode_operations autofs_symlink_inode_operations = {
 	.readlink	= generic_readlink,
-	.follow_link	= autofs4_follow_link
+	.follow_link	= autofs_follow_link
 };
fs/autofs4/waitq.c +28 -27

160 lines not on this page · raw message

author maintainer
#6 lore raw

RFC PATCH 6/7 autofs - rename module autofs4 to autofs

In reply to Ian Kent

Rename autofs4 to autofs since is now the only module that provides the autofs file system and the module is not version 4 specific.

Changes that will need to be made should be limited to:
- source include statments should be changed from autofs_fs4.h to autofs_fs.h since these two header file have been merged.
- user space scripts that manually load autofs4.ko should be changed to load autofs.ko. Since the module directory name and the module name itself are the same now there is no need to manually load module.
- any "alias autofs autofs4" will need to be removed.
- configure AUTOFS_FS instead of AUTOFS4_FS from now on.

---
 MAINTAINERS            |    4 
 fs/Kconfig             |    1 
 fs/Makefile            |    1 
 fs/autofs/Kconfig      |   19 +
 fs/autofs/Makefile     |    7 
 fs/autofs/autofs_i.h   |  341 ++++++++++++++++++
 fs/autofs/dev-ioctl.c  |  759 +++++++++++++++++++++++++++++++++++++++++
 fs/autofs/expire.c     |  561 ++++++++++++++++++++++++++++++
 fs/autofs/init.c       |   49 +++
 fs/autofs/inode.c      |  368 ++++++++++++++++++++
 fs/autofs/root.c       |  898 ++++++++++++++++++++++++++++++++++++++++++++++++
 fs/autofs/symlink.c    |   21 +
 fs/autofs/waitq.c      |  570 ++++++++++++++++++++++++++++++
 fs/autofs4/Kconfig     |   31 +-
 fs/autofs4/Makefile    |   10 -
 fs/autofs4/autofs_i.h  |  341 ------------------
 fs/autofs4/dev-ioctl.c |  760 -----------------------------------------
 fs/autofs4/expire.c    |  562 ------------------------------
 fs/autofs4/init.c      |   49 ---
 fs/autofs4/inode.c     |  368 --------------------
 fs/autofs4/root.c      |  898 ------------------------------------------------
 fs/autofs4/symlink.c   |   21 -
 fs/autofs4/waitq.c     |  571 -------------------------------
 23 files changed, 3627 insertions(+), 3583 deletions(-)
 create mode 100644 fs/autofs/Kconfig
 create mode 100644 fs/autofs/Makefile
 create mode 100644 fs/autofs/autofs_i.h
 create mode 100644 fs/autofs/dev-ioctl.c
 create mode 100644 fs/autofs/expire.c
 create mode 100644 fs/autofs/init.c
 create mode 100644 fs/autofs/inode.c
 create mode 100644 fs/autofs/root.c
 create mode 100644 fs/autofs/symlink.c
 create mode 100644 fs/autofs/waitq.c
 delete mode 100644 fs/autofs4/autofs_i.h
 delete mode 100644 fs/autofs4/dev-ioctl.c
 delete mode 100644 fs/autofs4/expire.c
 delete mode 100644 fs/autofs4/init.c
 delete mode 100644 fs/autofs4/inode.c
 delete mode 100644 fs/autofs4/root.c
 delete mode 100644 fs/autofs4/symlink.c
 delete mode 100644 fs/autofs4/waitq.c
MAINTAINERS +2 -2
index bd30092..d83b551 100644
@@ -4679,11 +4679,11 @@ W:	http://linuxtv.org
 S:	Maintained
 F:	drivers/media/radio/radio-keene*
 
-KERNEL AUTOMOUNTER v4 (AUTOFS4)
+KERNEL AUTOMOUNTER v4 (AUTOFS)
 M:	Ian Kent <[email protected]>
 L:	[email protected]
 S:	Maintained
-F:	fs/autofs4/
+F:	fs/autofs/
 
 KERNEL BUILD + files below scripts/ (unless maintained elsewhere)
 M:	Michal Marek <[email protected]>
fs/Kconfig +1 -0
index c229f82..5c071f3 100644
@@ -65,6 +65,7 @@ source "fs/notify/Kconfig"
 
 source "fs/quota/Kconfig"
 
+source "fs/autofs/Kconfig"
 source "fs/autofs4/Kconfig"
 source "fs/fuse/Kconfig"
 
fs/Makefile +1 -0
index 4fe6df3..d433f30 100644
@@ -102,6 +102,7 @@ obj-$(CONFIG_AFFS_FS)		+= affs/
 obj-$(CONFIG_ROMFS_FS)		+= romfs/
 obj-$(CONFIG_QNX4FS_FS)		+= qnx4/
 obj-$(CONFIG_QNX6FS_FS)		+= qnx6/
+obj-$(CONFIG_AUTOFS_FS)		+= autofs/
 obj-$(CONFIG_AUTOFS4_FS)	+= autofs4/
 obj-$(CONFIG_ADFS_FS)		+= adfs/
 obj-$(CONFIG_FUSE_FS)		+= fuse/
fs/autofs/Kconfig new file +19 -0
new file mode 100644
index 0000000..99f5a05
@@ -0,0 +1,19 @@
+config AUTOFS_FS
+	tristate "Kernel automounter support (supports v3, v4 and v5)"
+	help
+	  The automounter is a tool to automatically mount remote file systems
+	  on demand. This implementation is partially kernel-based to reduce
+	  overhead in the already-mounted case; this is unlike the BSD
+	  automounter (amd), which is a pure user space daemon.
+
+	  To use the automounter you need the user-space tools from
+	  <ftp://ftp.kernel.org/pub/linux/daemons/autofs/>; you also want
+	  to answer Y to "NFS file system support", below.
+
+	  To compile this support as a module, choose M here: the module will be
+	  called autofs.
+
+	  If you are not a part of a fairly large, distributed network or
+	  don't have a laptop which needs to dynamically reconfigure to the
+	  local network, you probably do not need an automounter, and can say
+	  N here.
fs/autofs/Makefile new file +7 -0
new file mode 100644
index 0000000..43fedde
@@ -0,0 +1,7 @@
+#
+# Makefile for the linux autofs-filesystem routines.
+#
+
+obj-$(CONFIG_AUTOFS_FS) += autofs.o
+
+autofs-objs := init.o inode.o root.o symlink.o waitq.o expire.o dev-ioctl.o
fs/autofs/autofs_i.h new file +341 -0

341 lines not on this page · raw message

fs/autofs/dev-ioctl.c new file +759 -0

759 lines not on this page · raw message

fs/autofs/expire.c new file +561 -0

561 lines not on this page · raw message

fs/autofs/init.c new file +49 -0

49 lines not on this page · raw message

fs/autofs/inode.c new file +368 -0

368 lines not on this page · raw message

fs/autofs/root.c new file +898 -0

869 lines not on this page · raw message

fs/autofs/symlink.c new file +21 -0
new file mode 100644
index 0000000..9d728bf

Lines of this file are not shown. View the raw message.

fs/autofs/waitq.c new file +570 -0

570 lines not on this page · raw message

fs/autofs4/Kconfig +21 -10
index 1204d63..0e1167a 100644

Lines of this file are not shown. View the raw message.

fs/autofs4/Makefile +9 -1
index a811c1f..bd4a535 100644

Lines of this file are not shown. View the raw message.

fs/autofs4/autofs_i.h deleted +0 -341

341 lines not on this page · raw message

fs/autofs4/dev-ioctl.c deleted +0 -760

760 lines not on this page · raw message

fs/autofs4/expire.c deleted +0 -562

562 lines not on this page · raw message

fs/autofs4/init.c deleted +0 -49

49 lines not on this page · raw message

fs/autofs4/inode.c deleted +0 -368

368 lines not on this page · raw message

fs/autofs4/root.c deleted +0 -898

898 lines not on this page · raw message

fs/autofs4/symlink.c deleted +0 -21
deleted file mode 100644
index 9d728bf..0000000

Lines of this file are not shown. View the raw message.

fs/autofs4/waitq.c deleted +0 -571

571 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

author maintainer
#7 lore raw

RFC PATCH 7/7 autofs - change CONFIG_AUTOFS4_FS to CONFIG_AUTOFS_FS

In reply to Ian Kent
---
 arch/arm/configs/at91rm9200_defconfig        |    2 +-
 arch/arm/configs/bcm_defconfig               |    2 +-
 arch/arm/configs/cns3420vb_defconfig         |    2 +-
 arch/arm/configs/colibri_pxa270_defconfig    |    2 +-
 arch/arm/configs/da8xx_omapl_defconfig       |    2 +-
 arch/arm/configs/davinci_all_defconfig       |    2 +-
 arch/arm/configs/ebsa110_defconfig           |    2 +-
 arch/arm/configs/ezx_defconfig               |    2 +-
 arch/arm/configs/footbridge_defconfig        |    2 +-
 arch/arm/configs/imote2_defconfig            |    2 +-
 arch/arm/configs/imx_v6_v7_defconfig         |    2 +-
 arch/arm/configs/lpc32xx_defconfig           |    2 +-
 arch/arm/configs/mini2440_defconfig          |    2 +-
 arch/arm/configs/omap1_defconfig             |    2 +-
 arch/arm/configs/rpc_defconfig               |    2 +-
 arch/arm/configs/s3c2410_defconfig           |    2 +-
 arch/arm/configs/spear13xx_defconfig         |    2 +-
 arch/arm/configs/spear3xx_defconfig          |    2 +-
 arch/arm/configs/spear6xx_defconfig          |    2 +-
 arch/arm/configs/trizeps4_defconfig          |    2 +-
 arch/ia64/configs/bigsur_defconfig           |    2 +-
 arch/ia64/configs/generic_defconfig          |    2 +-
 arch/ia64/configs/gensparse_defconfig        |    2 +-
 arch/ia64/configs/tiger_defconfig            |    2 +-
 arch/ia64/configs/xen_domu_defconfig         |    2 +-
 arch/m68k/configs/amiga_defconfig            |    2 +-
 arch/m68k/configs/apollo_defconfig           |    2 +-
 arch/m68k/configs/atari_defconfig            |    2 +-
 arch/m68k/configs/bvme6000_defconfig         |    2 +-
 arch/m68k/configs/hp300_defconfig            |    2 +-
 arch/m68k/configs/mac_defconfig              |    2 +-
 arch/m68k/configs/multi_defconfig            |    2 +-
 arch/m68k/configs/mvme147_defconfig          |    2 +-
 arch/m68k/configs/mvme16x_defconfig          |    2 +-
 arch/m68k/configs/q40_defconfig              |    2 +-
 arch/m68k/configs/sun3_defconfig             |    2 +-
 arch/m68k/configs/sun3x_defconfig            |    2 +-
 arch/mips/configs/bcm47xx_defconfig          |    2 +-
 arch/mips/configs/bigsur_defconfig           |    2 +-
 arch/mips/configs/capcella_defconfig         |    2 +-
 arch/mips/configs/e55_defconfig              |    2 +-
 arch/mips/configs/fuloong2e_defconfig        |    2 +-
 arch/mips/configs/ip22_defconfig             |    2 +-
 arch/mips/configs/ip32_defconfig             |    2 +-
 arch/mips/configs/jazz_defconfig             |    2 +-
 arch/mips/configs/lemote2f_defconfig         |    2 +-
 arch/mips/configs/markeins_defconfig         |    2 +-
 arch/mips/configs/mpc30x_defconfig           |    2 +-
 arch/mips/configs/mtx1_defconfig             |    2 +-
 arch/mips/configs/nlm_xlp_defconfig          |    2 +-
 arch/mips/configs/nlm_xlr_defconfig          |    2 +-
 arch/mips/configs/rm200_defconfig            |    2 +-
 arch/mips/configs/tb0219_defconfig           |    2 +-
 arch/mips/configs/tb0226_defconfig           |    2 +-
 arch/mips/configs/tb0287_defconfig           |    2 +-
 arch/mips/configs/workpad_defconfig          |    2 +-
 arch/parisc/configs/712_defconfig            |    2 +-
 arch/parisc/configs/a500_defconfig           |    2 +-
 arch/parisc/configs/b180_defconfig           |    2 +-
 arch/parisc/configs/c3000_defconfig          |    2 +-
 arch/powerpc/configs/40x/virtex_defconfig    |    2 +-
 arch/powerpc/configs/44x/sam440ep_defconfig  |    2 +-
 arch/powerpc/configs/44x/virtex5_defconfig   |    2 +-
 arch/powerpc/configs/85xx/stx_gp3_defconfig  |    2 +-
 arch/powerpc/configs/86xx/sbc8641d_defconfig |    2 +-
 arch/powerpc/configs/c2k_defconfig           |    2 +-
 arch/powerpc/configs/cell_defconfig          |    2 +-
 arch/powerpc/configs/ep8248e_defconfig       |    2 +-
 arch/powerpc/configs/mgcoge_defconfig        |    2 +-
 arch/powerpc/configs/mpc8272_ads_defconfig   |    2 +-
 arch/powerpc/configs/pasemi_defconfig        |    2 +-
 arch/powerpc/configs/pmac32_defconfig        |    2 +-
 arch/powerpc/configs/ppc64_defconfig         |    2 +-
 arch/powerpc/configs/ppc64e_defconfig        |    2 +-
 arch/powerpc/configs/ppc6xx_defconfig        |    2 +-
 arch/powerpc/configs/pq2fads_defconfig       |    2 +-
 arch/powerpc/configs/ps3_defconfig           |    2 +-
 arch/powerpc/configs/pseries_defconfig       |    2 +-
 arch/score/configs/spct6600_defconfig        |    2 +-
 arch/sh/configs/espt_defconfig               |    2 +-
 arch/sh/configs/sdk7780_defconfig            |    2 +-
 arch/sh/configs/sdk7786_defconfig            |    2 +-
 arch/sh/configs/sh03_defconfig               |    2 +-
 arch/sh/configs/sh7763rdp_defconfig          |    2 +-
 arch/sparc/configs/sparc32_defconfig         |    2 +-
 arch/tile/configs/tilegx_defconfig           |    2 +-
 arch/tile/configs/tilepro_defconfig          |    2 +-
 arch/um/defconfig                            |    2 +-
 arch/x86/configs/i386_defconfig              |    2 +-
 arch/x86/configs/x86_64_defconfig            |    2 +-
 arch/xtensa/configs/common_defconfig         |    1 -
 arch/xtensa/configs/iss_defconfig            |    1 -
 arch/xtensa/configs/s6105_defconfig          |    1 -
 93 files changed, 90 insertions(+), 93 deletions(-)
arch/arm/configs/at91rm9200_defconfig +1 -1
index 75502c4..db89c6e 100644
@@ -139,7 +139,7 @@ CONFIG_LEDS_TRIGGER_GPIO=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_AT91RM9200=y
 CONFIG_EXT4_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_TMPFS=y
 CONFIG_UBIFS_FS=y
arch/arm/configs/bcm_defconfig +1 -1
index e3bf2d6..b9ace84 100644
@@ -87,7 +87,7 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
 CONFIG_EXT4_FS=y
 CONFIG_EXT4_FS_POSIX_ACL=y
 CONFIG_EXT4_FS_SECURITY=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_FUSE_FS=y
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
arch/arm/configs/cns3420vb_defconfig +1 -1
index b1ff5cd..b3c203e 100644
@@ -64,7 +64,7 @@ CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT2_FS_XATTR=y
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_FSCACHE=y
 CONFIG_TMPFS=y
 # CONFIG_ENABLE_WARN_DEPRECATED is not set
arch/arm/configs/colibri_pxa270_defconfig +1 -1
index 2ef2c5e..5303c56 100644
@@ -135,7 +135,7 @@ CONFIG_RTC_CLASS=y
 # CONFIG_RTC_HCTOSYS is not set
 CONFIG_RTC_DRV_PCF8583=m
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_MSDOS_FS=m
 CONFIG_VFAT_FS=m
 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-15"
arch/arm/configs/da8xx_omapl_defconfig +1 -1
index 7c86813..d6cf64b 100644
@@ -106,7 +106,7 @@ CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 CONFIG_XFS_FS=m
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_TMPFS=y
arch/arm/configs/davinci_all_defconfig +1 -1
index c86fd75..a683475 100644
@@ -166,7 +166,7 @@ CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 CONFIG_XFS_FS=m
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_TMPFS=y
arch/arm/configs/ebsa110_defconfig +1 -1
index 14559db..ed8327f 100644
@@ -66,7 +66,7 @@ CONFIG_SERIAL_8250_CS=m
 CONFIG_PRINTER=m
 CONFIG_WATCHDOG=y
 CONFIG_SOFT_WATCHDOG=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_MINIX_FS=y
 CONFIG_NFS_FS=y
 CONFIG_NFS_V3=y
arch/arm/configs/ezx_defconfig +1 -1
index d95763d..50f3b4d 100644
@@ -315,7 +315,7 @@ CONFIG_REISERFS_FS_SECURITY=y
 CONFIG_XFS_FS=m
 CONFIG_INOTIFY=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=m
arch/arm/configs/footbridge_defconfig +1 -1
index 038518a..5f2a428 100644
@@ -105,7 +105,7 @@ CONFIG_USB_DEVICEFS=y
 CONFIG_USB_MON=m
 CONFIG_USB_PRINTER=m
 CONFIG_EXT2_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
 CONFIG_MSDOS_FS=m
arch/arm/configs/imote2_defconfig +1 -1
index fd996bb..c613896 100644
@@ -286,7 +286,7 @@ CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=m
 CONFIG_INOTIFY=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_MSDOS_FS=m
arch/arm/configs/imx_v6_v7_defconfig +1 -1
index 2353bde..68c2ffe 100644
@@ -238,7 +238,7 @@ CONFIG_EXT4_FS_SECURITY=y
 CONFIG_QUOTA=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_FUSE_FS=y
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
arch/arm/configs/lpc32xx_defconfig +1 -1
index 398a367..8f9d3eb 100644
@@ -183,7 +183,7 @@ CONFIG_MAX517=y
 CONFIG_PWM=y
 CONFIG_PWM_LPC32XX=y
 CONFIG_EXT2_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_TMPFS=y
arch/arm/configs/mini2440_defconfig +1 -1
index a07948a..ce6c835 100644
@@ -268,7 +268,7 @@ CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT3_FS_SECURITY=y
 CONFIG_INOTIFY=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_TMPFS=y
arch/arm/configs/omap1_defconfig +1 -1
index d74edba..8fae376 100644
@@ -231,7 +231,7 @@ CONFIG_RTC_DRV_OMAP=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 # CONFIG_DNOTIFY is not set
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_MSDOS_FS=y
arch/arm/configs/rpc_defconfig +1 -1
index 00515ef..f2ebb47 100644
@@ -88,7 +88,7 @@ CONFIG_RTC_DRV_PCF8583=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_MSDOS_FS=m
arch/arm/configs/s3c2410_defconfig +1 -1
index 193448f..b3f829f 100644
@@ -396,7 +396,7 @@ CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT4_FS=m
 CONFIG_EXT4_FS_POSIX_ACL=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
arch/arm/configs/spear13xx_defconfig +1 -1
index 1fdb826..5a803b3 100644
@@ -79,7 +79,7 @@ CONFIG_EXT2_FS_XATTR=y
 CONFIG_EXT2_FS_SECURITY=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_SECURITY=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_MSDOS_FS=m
 CONFIG_VFAT_FS=m
 CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
arch/arm/configs/spear3xx_defconfig +1 -1
index 7ff23a0..70e4d8d 100644
@@ -73,7 +73,7 @@ CONFIG_EXT2_FS_XATTR=y
 CONFIG_EXT2_FS_SECURITY=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_SECURITY=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_MSDOS_FS=m
 CONFIG_VFAT_FS=m
 CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
arch/arm/configs/spear6xx_defconfig +1 -1
index 7822980..c1fadf0 100644
@@ -62,7 +62,7 @@ CONFIG_EXT2_FS_XATTR=y
 CONFIG_EXT2_FS_SECURITY=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_SECURITY=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_MSDOS_FS=m
 CONFIG_VFAT_FS=m
 CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
arch/arm/configs/trizeps4_defconfig +1 -1
index 3162173..677f482 100644
@@ -187,7 +187,7 @@ CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT3_FS_SECURITY=y
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_MSDOS_FS=m
 CONFIG_VFAT_FS=m
 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-15"
arch/ia64/configs/bigsur_defconfig +1 -1
index cf5993f..dab25bc 100644
@@ -87,7 +87,7 @@ CONFIG_XFS_FS=y
 CONFIG_XFS_QUOTA=y
 CONFIG_XFS_POSIX_ACL=y
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
 CONFIG_UDF_FS=m
arch/ia64/configs/generic_defconfig +1 -1
index 7913695..792a32e 100644
@@ -167,7 +167,7 @@ CONFIG_REISERFS_FS_POSIX_ACL=y
 CONFIG_REISERFS_FS_SECURITY=y
 CONFIG_XFS_FS=y
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
 CONFIG_UDF_FS=m
arch/ia64/configs/gensparse_defconfig +1 -1
index f8e9133..15447e3 100644
@@ -148,7 +148,7 @@ CONFIG_REISERFS_FS_POSIX_ACL=y
 CONFIG_REISERFS_FS_SECURITY=y
 CONFIG_XFS_FS=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
 CONFIG_UDF_FS=m
arch/ia64/configs/tiger_defconfig +1 -1
index a5a9e02..af2e3d2 100644
@@ -121,7 +121,7 @@ CONFIG_REISERFS_FS_POSIX_ACL=y
 CONFIG_REISERFS_FS_SECURITY=y
 CONFIG_XFS_FS=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
 CONFIG_UDF_FS=m
arch/ia64/configs/xen_domu_defconfig +1 -1
index 37b9b42..cdcaac1 100644
@@ -131,7 +131,7 @@ CONFIG_REISERFS_FS_POSIX_ACL=y
 CONFIG_REISERFS_FS_SECURITY=y
 CONFIG_XFS_FS=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
 CONFIG_UDF_FS=m
arch/m68k/configs/amiga_defconfig +1 -1
index 19325e1..449fe05 100644
@@ -358,7 +358,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/apollo_defconfig +1 -1
index 14dc6cc..de90302 100644
@@ -315,7 +315,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/atari_defconfig +1 -1
index 6d5370c..8f4c568 100644
@@ -333,7 +333,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/bvme6000_defconfig +1 -1
index c015ddb..09b9802 100644
@@ -307,7 +307,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/hp300_defconfig +1 -1
index ec7382d..46a500a 100644
@@ -317,7 +317,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/mac_defconfig +1 -1
index 7d46fbe..b1d3abe 100644
@@ -340,7 +340,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/multi_defconfig +1 -1
index b17a883..7c27aa2 100644
@@ -418,7 +418,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/mvme147_defconfig +1 -1
index 5586c65..281cdd8 100644
@@ -307,7 +307,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/mvme16x_defconfig +1 -1
index e5e8262..8af7a4d 100644
@@ -307,7 +307,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/q40_defconfig +1 -1
index be1496e..e9ada99 100644
@@ -331,7 +331,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/sun3_defconfig +1 -1
index 54674d6..cc1eeee 100644
@@ -309,7 +309,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/m68k/configs/sun3x_defconfig +1 -1
index 832d953..7436323 100644
@@ -309,7 +309,7 @@ CONFIG_OCFS2_FS=m
 CONFIG_FANOTIFY=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_CUSE=m
 CONFIG_ISO9660_FS=y
arch/mips/configs/bcm47xx_defconfig +1 -1
index 4ca8e5c..a2ae007 100644
@@ -506,7 +506,7 @@ CONFIG_QUOTA_NETLINK_INTERFACE=y
 CONFIG_QFMT_V1=m
 CONFIG_QFMT_V2=m
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
arch/mips/configs/bigsur_defconfig +1 -1
index 1cdff6b..d33c492 100644
@@ -184,7 +184,7 @@ CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
 CONFIG_QFMT_V2=m
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
arch/mips/configs/capcella_defconfig +1 -1
index 5135dc0..aa01aa0 100644
@@ -65,7 +65,7 @@ CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_VR41XX=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
arch/mips/configs/e55_defconfig +1 -1
index 0126e66..eda3e7d 100644
@@ -34,7 +34,7 @@ CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_VR41XX=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
arch/mips/configs/fuloong2e_defconfig +1 -1
index e5b73de..765f029 100644
@@ -221,7 +221,7 @@ CONFIG_EXT4_FS_POSIX_ACL=y
 CONFIG_EXT4_FS_SECURITY=y
 CONFIG_REISERFS_FS=m
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_FUSE_FS=y
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
arch/mips/configs/ip22_defconfig +1 -1
index 936ec5a..b06185e7 100644
@@ -289,7 +289,7 @@ CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
 CONFIG_QFMT_V2=m
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
arch/mips/configs/ip32_defconfig +1 -1
index 7bbd521..9657282 100644
@@ -118,7 +118,7 @@ CONFIG_QUOTA=y
 CONFIG_QFMT_V1=m
 CONFIG_QFMT_V2=m
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
arch/mips/configs/jazz_defconfig +1 -1
index 0315ee3..20fb38ec 100644
@@ -278,7 +278,7 @@ CONFIG_REISERFS_FS_SECURITY=y
 CONFIG_XFS_FS=m
 CONFIG_XFS_QUOTA=y
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
arch/mips/configs/lemote2f_defconfig +1 -1
index 343bebc..474d515 100644
@@ -350,7 +350,7 @@ CONFIG_BTRFS_FS=m
 CONFIG_QUOTA=y
 CONFIG_QFMT_V2=m
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_FSCACHE=m
 CONFIG_CACHEFILES=m
 CONFIG_ISO9660_FS=m
arch/mips/configs/markeins_defconfig +1 -1
index 636f82b..54104cf 100644
@@ -177,7 +177,7 @@ CONFIG_EXT2_FS_SECURITY=y
 CONFIG_EXT3_FS=m
 CONFIG_XFS_FS=m
 # CONFIG_DNOTIFY is not set
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_NTFS_FS=m
arch/mips/configs/mpc30x_defconfig +1 -1
index c16de98..64d05cd 100644
@@ -53,7 +53,7 @@ CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_VR41XX=y
 CONFIG_EXT2_FS=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_PROC_KCORE=y
 CONFIG_CONFIGFS_FS=m
 CONFIG_NFS_FS=y
arch/mips/configs/mtx1_defconfig +1 -1
index 9fa8f16..fa9a790 100644
@@ -698,7 +698,7 @@ CONFIG_EXT3_FS=m
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT3_FS_SECURITY=y
 CONFIG_QUOTA=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
arch/mips/configs/nlm_xlp_defconfig +1 -1
index 5468b1c..a2fb24c 100644
@@ -457,7 +457,7 @@ CONFIG_BTRFS_FS=m
 CONFIG_BTRFS_FS_POSIX_ACL=y
 CONFIG_NILFS2_FS=m
 CONFIG_QUOTA_NETLINK_INTERFACE=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=y
 CONFIG_CUSE=m
 CONFIG_FSCACHE=m
arch/mips/configs/nlm_xlr_defconfig +1 -1
index 44b4734..20f1243 100644
@@ -397,7 +397,7 @@ CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
 CONFIG_QFMT_V1=m
 CONFIG_QFMT_V2=m
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=y
 CONFIG_CUSE=m
 CONFIG_FSCACHE=m
arch/mips/configs/rm200_defconfig +1 -1
index 59d9d2f..0bd541e 100644
@@ -369,7 +369,7 @@ CONFIG_REISERFS_FS_SECURITY=y
 CONFIG_XFS_FS=m
 CONFIG_XFS_QUOTA=y
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
arch/mips/configs/tb0219_defconfig +1 -1
index 30036b4..8bb94e0 100644
@@ -81,7 +81,7 @@ CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_VR41XX=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
arch/mips/configs/tb0226_defconfig +1 -1
index 81bfa1d..9743b31 100644
@@ -78,7 +78,7 @@ CONFIG_USB_STORAGE=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_VR41XX=y
 CONFIG_EXT2_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
arch/mips/configs/tb0287_defconfig +1 -1
index c415c4f..e15ea36 100644
@@ -96,7 +96,7 @@ CONFIG_EXT3_FS=y
 CONFIG_XFS_FS=y
 CONFIG_XFS_QUOTA=y
 CONFIG_XFS_POSIX_ACL=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
arch/mips/configs/workpad_defconfig +1 -1
index ee4b2be..33a6683 100644
@@ -61,7 +61,7 @@ CONFIG_RTC_DRV_VR41XX=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT2_FS_XATTR=y
 CONFIG_EXT3_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
arch/parisc/configs/712_defconfig +1 -1
index 0f90569..a3879f8 100644
@@ -118,7 +118,7 @@ CONFIG_EXT3_FS=y
 # CONFIG_EXT3_FS_XATTR is not set
 CONFIG_JFS_FS=m
 CONFIG_XFS_FS=m
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_UDF_FS=m
arch/parisc/configs/a500_defconfig +1 -1
index b647b18..cf85bc1 100644
@@ -160,7 +160,7 @@ CONFIG_EXT3_FS=y
 # CONFIG_EXT3_FS_XATTR is not set
 CONFIG_JFS_FS=m
 CONFIG_XFS_FS=m
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_UDF_FS=m
arch/parisc/configs/b180_defconfig +1 -1
index e289f5b..3e92363 100644
@@ -82,7 +82,7 @@ CONFIG_SND_HARMONY=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_FS_XATTR is not set
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_PROC_KCORE=y
arch/parisc/configs/c3000_defconfig +1 -1
index 311ca36..047ef19 100644
@@ -140,7 +140,7 @@ CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_FS_XATTR is not set
 CONFIG_XFS_FS=m
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_MSDOS_FS=m
arch/powerpc/configs/40x/virtex_defconfig +1 -1
index 0a81e1f..2aa127b 100644
@@ -69,7 +69,7 @@ CONFIG_LOGO=y
 CONFIG_EXT2_FS=y
 CONFIG_INOTIFY=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_TMPFS=y
arch/powerpc/configs/44x/sam440ep_defconfig +1 -1
index ca088cd..ed98042 100644
@@ -101,7 +101,7 @@ CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_REISERFS_FS=y
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_ZISOFS=y
arch/powerpc/configs/44x/virtex5_defconfig +1 -1
index 1eb3caf..11a6c1e 100644
@@ -68,7 +68,7 @@ CONFIG_LOGO=y
 CONFIG_EXT2_FS=y
 CONFIG_INOTIFY=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_TMPFS=y
arch/powerpc/configs/85xx/stx_gp3_defconfig +1 -1
index 5d4db15..01f7a77 100644
@@ -65,7 +65,7 @@ CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 CONFIG_INOTIFY=y
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_ISO9660_FS=m
 CONFIG_UDF_FS=m
 CONFIG_MSDOS_FS=m
arch/powerpc/configs/86xx/sbc8641d_defconfig +1 -1
index 1a62baf..bf44180 100644
@@ -195,7 +195,7 @@ CONFIG_REISERFS_FS_POSIX_ACL=y
 CONFIG_OCFS2_FS=m
 CONFIG_INOTIFY=y
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_MINIX_FS=m
arch/powerpc/configs/c2k_defconfig +1 -1
index 671a8f9..edebe72 100644
@@ -339,7 +339,7 @@ CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT3_FS_SECURITY=y
 CONFIG_QUOTA=y
 CONFIG_QFMT_V2=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_UDF_FS=m
 CONFIG_MSDOS_FS=m
 CONFIG_VFAT_FS=m
arch/powerpc/configs/cell_defconfig +1 -1
index 22a403d..d98375c 100644
@@ -199,7 +199,7 @@ CONFIG_UIO=m
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
 CONFIG_UDF_FS=m
arch/powerpc/configs/ep8248e_defconfig +1 -1
index fceffb3..55a394c 100644
@@ -58,7 +58,7 @@ CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 # CONFIG_EXT3_FS_XATTR is not set
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_CRAMFS=y
arch/powerpc/configs/mgcoge_defconfig +1 -1
index 8fa84f1..a7ad80c 100644
@@ -70,7 +70,7 @@ CONFIG_USB_G_SERIAL=y
 CONFIG_UIO=y
 CONFIG_UIO_PDRV=y
 CONFIG_EXT2_FS=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_JFFS2_FS=y
arch/powerpc/configs/mpc8272_ads_defconfig +1 -1
index 6a22400..893d8b9 100644
@@ -65,7 +65,7 @@ CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_CRAMFS=y
arch/powerpc/configs/pasemi_defconfig +1 -1
index bd8a6f7..0905445 100644
@@ -156,7 +156,7 @@ CONFIG_EXT2_FS_XATTR=y
 CONFIG_EXT2_FS_POSIX_ACL=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_UDF_FS=y
 CONFIG_MSDOS_FS=y
arch/powerpc/configs/pmac32_defconfig +1 -1
index a73626b..74912c0 100644
@@ -315,7 +315,7 @@ CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT4_FS=y
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
arch/powerpc/configs/ppc64_defconfig +1 -1
index c86fcb9..67a96ac 100644
@@ -351,7 +351,7 @@ CONFIG_XFS_POSIX_ACL=y
 CONFIG_BTRFS_FS=m
 CONFIG_BTRFS_FS_POSIX_ACL=y
 CONFIG_NILFS2_FS=m
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=y
 CONFIG_UDF_FS=m
arch/powerpc/configs/ppc64e_defconfig +1 -1
index 4b20f76..c216d80 100644
@@ -273,7 +273,7 @@ CONFIG_JFS_POSIX_ACL=y
 CONFIG_JFS_SECURITY=y
 CONFIG_XFS_FS=m
 CONFIG_XFS_POSIX_ACL=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_ISO9660_FS=y
 CONFIG_UDF_FS=m
 CONFIG_MSDOS_FS=y
arch/powerpc/configs/ppc6xx_defconfig +1 -1
index 20ebfaf..c25f597 100644
@@ -1122,7 +1122,7 @@ CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
 CONFIG_QFMT_V2=y
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
arch/powerpc/configs/pq2fads_defconfig +1 -1
index baad8db..9102a31 100644
@@ -69,7 +69,7 @@ CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 CONFIG_INOTIFY=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_CRAMFS=y
arch/powerpc/configs/ps3_defconfig +1 -1
index 139a830..b34fef3 100644
@@ -150,7 +150,7 @@ CONFIG_EXT3_FS=m
 CONFIG_EXT4_FS=y
 CONFIG_QUOTA=y
 CONFIG_QFMT_V2=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
 CONFIG_UDF_FS=m
arch/powerpc/configs/pseries_defconfig +1 -1
index bea8587..b6b835a 100644
@@ -281,7 +281,7 @@ CONFIG_XFS_POSIX_ACL=y
 CONFIG_BTRFS_FS=m
 CONFIG_BTRFS_FS_POSIX_ACL=y
 CONFIG_NILFS2_FS=m
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=m
 CONFIG_ISO9660_FS=y
 CONFIG_UDF_FS=m
arch/score/configs/spct6600_defconfig +1 -1
index df1edbf..dadf48f 100644
@@ -57,7 +57,7 @@ CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_PROC_KCORE=y
 # CONFIG_PROC_PAGE_MONITOR is not set
 CONFIG_TMPFS=y
arch/sh/configs/espt_defconfig +1 -1
index 67cb109..491b842 100644
@@ -74,7 +74,7 @@ CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_PROC_KCORE=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
arch/sh/configs/sdk7780_defconfig +1 -1
index ae11158..ef7736b 100644
@@ -116,7 +116,7 @@ CONFIG_EXT2_FS_POSIX_ACL=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 CONFIG_EXT3_FS_POSIX_ACL=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
arch/sh/configs/sdk7786_defconfig +1 -1
index 76a76a2..3006c56 100644
@@ -183,7 +183,7 @@ CONFIG_EXT3_FS=y
 CONFIG_EXT4_FS=y
 CONFIG_XFS_FS=y
 CONFIG_BTRFS_FS=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=y
 CONFIG_CUSE=m
 CONFIG_FSCACHE=m
arch/sh/configs/sh03_defconfig +1 -1
index 2051821..93b661f 100644
@@ -71,7 +71,7 @@ CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_ISO9660_FS=m
 CONFIG_JOLIET=y
 CONFIG_ZISOFS=y
arch/sh/configs/sh7763rdp_defconfig +1 -1
index 4795364..e324b42 100644
@@ -75,7 +75,7 @@ CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 CONFIG_AUTOFS_FS=y
-CONFIG_AUTOFS4_FS=y
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
 CONFIG_PROC_KCORE=y
arch/sparc/configs/sparc32_defconfig +1 -1
index fb23fd6..1745260 100644
@@ -71,7 +71,7 @@ CONFIG_EXT2_FS_XATTR=y
 CONFIG_EXT2_FS_POSIX_ACL=y
 CONFIG_EXT2_FS_SECURITY=y
 CONFIG_AUTOFS_FS=m
-CONFIG_AUTOFS4_FS=m
+# CONFIG_AUTOFS4_FS is not set
 CONFIG_ISO9660_FS=m
 CONFIG_PROC_KCORE=y
 CONFIG_ROMFS_FS=m
arch/tile/configs/tilegx_defconfig +1 -1
index 4768481..a8196cf 100644
@@ -443,7 +443,7 @@ CONFIG_QUOTA=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
 CONFIG_QFMT_V2=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=y
 CONFIG_CUSE=m
 CONFIG_FSCACHE=m
arch/tile/configs/tilepro_defconfig +1 -1
index dd2b8f0..2fa5f6e 100644
@@ -431,7 +431,7 @@ CONFIG_QUOTA=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
 CONFIG_QFMT_V2=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 CONFIG_FUSE_FS=y
 CONFIG_CUSE=m
 CONFIG_FSCACHE=m
arch/um/defconfig +1 -1
index 08107a7..9c13ef8 100644
@@ -607,7 +607,7 @@ CONFIG_PRINT_QUOTA_WARNING=y
 # CONFIG_QFMT_V1 is not set
 # CONFIG_QFMT_V2 is not set
 CONFIG_QUOTACTL=y
-CONFIG_AUTOFS4_FS=m
+CONFIG_AUTOFS_FS=m
 # CONFIG_FUSE_FS is not set
 
 #
arch/x86/configs/i386_defconfig +1 -1
index 9444708..d28fc1f 100644
@@ -266,7 +266,7 @@ CONFIG_QUOTA=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
 CONFIG_QFMT_V2=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_ZISOFS=y
arch/x86/configs/x86_64_defconfig +1 -1
index 671524d..d702451 100644
@@ -265,7 +265,7 @@ CONFIG_QUOTA=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
 CONFIG_QFMT_V2=y
-CONFIG_AUTOFS4_FS=y
+CONFIG_AUTOFS_FS=y
 CONFIG_ISO9660_FS=y
 CONFIG_JOLIET=y
 CONFIG_ZISOFS=y
arch/xtensa/configs/common_defconfig +0 -1
index a182a4e..2fe8b64 100644
@@ -543,7 +543,6 @@ CONFIG_USB_ARCH_HAS_OHCI=y
 # CONFIG_QUOTA is not set
 CONFIG_DNOTIFY=y
 # CONFIG_AUTOFS_FS is not set
-# CONFIG_AUTOFS4_FS is not set
 
 #
 # CD-ROM/DVD Filesystems
arch/xtensa/configs/iss_defconfig +0 -1
index 77c52f8..5ae3369 100644
@@ -523,7 +523,6 @@ CONFIG_FSNOTIFY=y
 CONFIG_INOTIFY_USER=y
 # CONFIG_QUOTA is not set
 # CONFIG_AUTOFS_FS is not set
-# CONFIG_AUTOFS4_FS is not set
 # CONFIG_FUSE_FS is not set
 
 #
arch/xtensa/configs/s6105_defconfig +0 -1
index 4799c6a..cf5fd90 100644
@@ -503,7 +503,6 @@ CONFIG_FILE_LOCKING=y
 # CONFIG_INOTIFY is not set
 # CONFIG_QUOTA is not set
 # CONFIG_AUTOFS_FS is not set
-# CONFIG_AUTOFS4_FS is not set
 # CONFIG_FUSE_FS is not set
 
 #
#8 lore raw

Re: [RFC PATCH 7/7] autofs - change CONFIG_AUTOFS4_FS to CONFIG_AUTOFS_FS

Hi Ian,

Quoted 2 lines · On Mon, 01 Jul 2013 11:14:51 +0800 Ian Kent <[email protected]> wrote:

Please don't do this. Find a simple way to make sure that if CONFIG_AUTOFS4_FS is set, then "make oldconfig" (or equivalent) will cause CONFIG_AUTOFS_FS to be set the same.

The maintainers will update the defconfigs over time.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
author maintainer
#9 lore raw

Re: [RFC PATCH 7/7] autofs - change CONFIG_AUTOFS4_FS to CONFIG_AUTOFS_FS

Quoted 9 lines · Stephen Rothwell

Hi Ian,

Quoted 2 lines · On Mon, 01 Jul 2013 11:14:51 +0800 Ian Kent <[email protected]> wrote:

Please don't do this. Find a simple way to make sure that if CONFIG_AUTOFS4_FS is set, then "make oldconfig" (or equivalent) will cause CONFIG_AUTOFS_FS to be set the same.

I get what your recommending but still can't think of a way to do it, any thoughts?

Am I correct that's a +1 for an outright rename of autofs4 to autofs rather than keeping the autofs4 directory and a compile stub?

I think what I was intending to do (even though I don't really like that either) isn't apparent since patch 6 didn't make it to the list. I've re-organized the series since, so perhaps another post of the series to the list will provoke some suggestions.

Quoted 3 lines

The maintainers will update the defconfigs over time.

Perhaps the maintainers expected the rename to occur a long time ago (and it probably should have) since after around three years the configs are still out of date. Still, as you say, it isn't really my place to fix that.

Ian

#10 lore raw

Re: [RFC PATCH 7/7] autofs - change CONFIG_AUTOFS4_FS to CONFIG_AUTOFS_FS

Hi Ian,

Quoted 5 lines · On Fri, 05 Jul 2013 17:51:24 +0800 Ian Kent <[email protected]> wrote:
Quoted 3 lines · Stephen Rothwell
Quoted 1 line · On Mon, 01 Jul 2013 11:14:51 +0800 Ian Kent <[email protected]> wrote:
Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Please don't do this. Find a simple way to make sure that if CONFIG_AUTOFS4_FS is set, then "make oldconfig" (or equivalent) will cause CONFIG_AUTOFS_FS to be set the same.

I get what your recommending but still can't think of a way to do it, any thoughts?

Isn't just having

config AUTOFS4_FS
tristate
select AUTOFS_FS

enough?

Quoted 2 lines

Am I correct that's a +1 for an outright rename of autofs4 to autofs rather than keeping the autofs4 directory and a compile stub?

I have no opinion :-)

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
author maintainer
#11 lore raw

Re: [RFC PATCH 7/7] autofs - change CONFIG_AUTOFS4_FS to CONFIG_AUTOFS_FS

Quoted 14 lines · Stephen Rothwell

Hi Ian,

Quoted 11 lines · On Fri, 05 Jul 2013 17:51:24 +0800 Ian Kent <[email protected]> wrote:
Quoted 8 lines · Stephen Rothwell
Quoted 2 lines · On Mon, 01 Jul 2013 11:14:51 +0800 Ian Kent <[email protected]> wrote:

Please don't do this. Find a simple way to make sure that if CONFIG_AUTOFS4_FS is set, then "make oldconfig" (or equivalent) will cause CONFIG_AUTOFS_FS to be set the same.

Quoted 8 lines
Quoted 2 lines

I get what your recommending but still can't think of a way to do it, any thoughts?

Isn't just having

config AUTOFS4_FS
tristate
select AUTOFS_FS

I though that would set AUTOFS_FS=y unconditionally which I think is not necessarily the setting that is needed. Also, I believe there's no way to set it based on AUTOFS4_FS after it's value has been set from the menu.

Ian