summaryrefslogtreecommitdiffstats
path: root/fs/autofs4/root.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-01-17 00:43:40 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2011-01-18 07:21:28 +0100
commit26e6c910670171410577c7df2aebe94cef76e150 (patch)
tree407ecb012b91efce80be76f0191b2efc43689b7f /fs/autofs4/root.c
parentautofs4: mkdir and symlink always get a dentry that had passed lookup (diff)
downloadlinux-26e6c910670171410577c7df2aebe94cef76e150.tar.xz
linux-26e6c910670171410577c7df2aebe94cef76e150.zip
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>
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r--fs/autofs4/root.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index a5b93e8f49b5..f7c97c084c1f 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -508,7 +508,7 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, s
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 @@ static int autofs4_dir_symlink(struct inode *dir,
BUG_ON(!ino);
- autofs4_init_ino(ino, sbi);
+ autofs4_clean_ino(ino);
autofs4_del_active(dentry);
@@ -732,7 +732,7 @@ static int autofs4_dir_mkdir(struct inode *dir, struct dentry *dentry, int mode)
BUG_ON(!ino);
- autofs4_init_ino(ino, sbi);
+ autofs4_clean_ino(ino);
autofs4_del_active(dentry);