autofs4: split autofs4_init_ino()
split init_ino into new_ino and clean_ino; the former is
what used to be init_ino(NULL, sbi), the latter is for cases
where we passed non-NULL ino. Lose unused arguments.
Acked-by: Ian Kent <raven@themaw.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index a5b93e8..f7c97c0 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -508,7 +508,7 @@
if (autofs_type_indirect(sbi->type) && IS_ROOT(dentry->d_parent))
__managed_dentry_set_managed(dentry);
- ino = autofs4_init_ino(NULL, sbi);
+ ino = autofs4_new_ino(sbi);
if (!ino)
return ERR_PTR(-ENOMEM);
@@ -541,7 +541,7 @@
BUG_ON(!ino);
- autofs4_init_ino(ino, sbi);
+ autofs4_clean_ino(ino);
autofs4_del_active(dentry);
@@ -732,7 +732,7 @@
BUG_ON(!ino);
- autofs4_init_ino(ino, sbi);
+ autofs4_clean_ino(ino);
autofs4_del_active(dentry);