diff options
author | Ian Kent <raven@themaw.net> | 2011-01-14 13:46:14 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-15 20:07:40 -0500 |
commit | e61da20a50d21725ff27571a6dff9468e4fb7146 (patch) | |
tree | c82ea451647e95754bb27aa46c60fd264ddd7c2c /fs/autofs4 | |
parent | 8c13a676d5a56495c350f3141824a5ef6c6b4606 (diff) |
autofs4: Clean up inode operations
Since the use of ->follow_link() has been eliminated there is no
need to separate the indirect and direct inode operations.
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/autofs4')
-rw-r--r-- | fs/autofs4/autofs_i.h | 3 | ||||
-rw-r--r-- | fs/autofs4/inode.c | 4 | ||||
-rw-r--r-- | fs/autofs4/root.c | 15 |
3 files changed, 1 insertions, 21 deletions
diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 1ee3b9afbe9e..f4b4030cf406 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h | |||
@@ -204,9 +204,6 @@ void autofs_dev_ioctl_exit(void); | |||
204 | 204 | ||
205 | extern const struct inode_operations autofs4_symlink_inode_operations; | 205 | extern const struct inode_operations autofs4_symlink_inode_operations; |
206 | extern const struct inode_operations autofs4_dir_inode_operations; | 206 | extern const struct inode_operations autofs4_dir_inode_operations; |
207 | extern const struct inode_operations autofs4_root_inode_operations; | ||
208 | extern const struct inode_operations autofs4_indirect_root_inode_operations; | ||
209 | extern const struct inode_operations autofs4_direct_root_inode_operations; | ||
210 | extern const struct file_operations autofs4_dir_operations; | 207 | extern const struct file_operations autofs4_dir_operations; |
211 | extern const struct file_operations autofs4_root_operations; | 208 | extern const struct file_operations autofs4_root_operations; |
212 | 209 | ||
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 75c1ed8e2fb9..dac3dc79ccb4 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c | |||
@@ -326,9 +326,7 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent) | |||
326 | __managed_dentry_set_managed(root); | 326 | __managed_dentry_set_managed(root); |
327 | 327 | ||
328 | root_inode->i_fop = &autofs4_root_operations; | 328 | root_inode->i_fop = &autofs4_root_operations; |
329 | root_inode->i_op = autofs_type_trigger(sbi->type) ? | 329 | root_inode->i_op = &autofs4_dir_inode_operations; |
330 | &autofs4_direct_root_inode_operations : | ||
331 | &autofs4_indirect_root_inode_operations; | ||
332 | 330 | ||
333 | /* Couldn't this be tested earlier? */ | 331 | /* Couldn't this be tested earlier? */ |
334 | if (sbi->max_proto < AUTOFS_MIN_PROTO_VERSION || | 332 | if (sbi->max_proto < AUTOFS_MIN_PROTO_VERSION || |
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index b2498c8cb0a7..52af410a831d 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
@@ -56,21 +56,6 @@ const struct file_operations autofs4_dir_operations = { | |||
56 | .llseek = dcache_dir_lseek, | 56 | .llseek = dcache_dir_lseek, |
57 | }; | 57 | }; |
58 | 58 | ||
59 | const struct inode_operations autofs4_indirect_root_inode_operations = { | ||
60 | .lookup = autofs4_lookup, | ||
61 | .unlink = autofs4_dir_unlink, | ||
62 | .symlink = autofs4_dir_symlink, | ||
63 | .mkdir = autofs4_dir_mkdir, | ||
64 | .rmdir = autofs4_dir_rmdir, | ||
65 | }; | ||
66 | |||
67 | const struct inode_operations autofs4_direct_root_inode_operations = { | ||
68 | .lookup = autofs4_lookup, | ||
69 | .unlink = autofs4_dir_unlink, | ||
70 | .mkdir = autofs4_dir_mkdir, | ||
71 | .rmdir = autofs4_dir_rmdir, | ||
72 | }; | ||
73 | |||
74 | const struct inode_operations autofs4_dir_inode_operations = { | 59 | const struct inode_operations autofs4_dir_inode_operations = { |
75 | .lookup = autofs4_lookup, | 60 | .lookup = autofs4_lookup, |
76 | .unlink = autofs4_dir_unlink, | 61 | .unlink = autofs4_dir_unlink, |