Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
aaa52f23
Commit
aaa52f23
authored
Oct 07, 2002
by
Art Haas
Committed by
Linus Torvalds
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] named initializers for fs/autofs4
parent
7a8c31e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
28 deletions
+28
-28
fs/autofs4/init.c
fs/autofs4/init.c
+4
-4
fs/autofs4/inode.c
fs/autofs4/inode.c
+2
-2
fs/autofs4/root.c
fs/autofs4/root.c
+20
-20
fs/autofs4/symlink.c
fs/autofs4/symlink.c
+2
-2
No files found.
fs/autofs4/init.c
View file @
aaa52f23
...
@@ -21,10 +21,10 @@ static struct super_block *autofs_get_sb(struct file_system_type *fs_type,
...
@@ -21,10 +21,10 @@ static struct super_block *autofs_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
autofs_fs_type
=
{
static
struct
file_system_type
autofs_fs_type
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"autofs"
,
.
name
=
"autofs"
,
get_sb:
autofs_get_sb
,
.
get_sb
=
autofs_get_sb
,
kill_sb:
kill_anon_super
,
.
kill_sb
=
kill_anon_super
,
};
};
static
int
__init
init_autofs4_fs
(
void
)
static
int
__init
init_autofs4_fs
(
void
)
...
...
fs/autofs4/inode.c
View file @
aaa52f23
...
@@ -91,8 +91,8 @@ static void autofs4_put_super(struct super_block *sb)
...
@@ -91,8 +91,8 @@ static void autofs4_put_super(struct super_block *sb)
}
}
static
struct
super_operations
autofs4_sops
=
{
static
struct
super_operations
autofs4_sops
=
{
put_super:
autofs4_put_super
,
.
put_super
=
autofs4_put_super
,
statfs:
simple_statfs
,
.
statfs
=
simple_statfs
,
};
};
static
int
parse_options
(
char
*
options
,
int
*
pipefd
,
uid_t
*
uid
,
gid_t
*
gid
,
static
int
parse_options
(
char
*
options
,
int
*
pipefd
,
uid_t
*
uid
,
gid_t
*
gid
,
...
...
fs/autofs4/root.c
View file @
aaa52f23
...
@@ -27,28 +27,28 @@ static int autofs4_root_ioctl(struct inode *, struct file *,unsigned int,unsigne
...
@@ -27,28 +27,28 @@ static int autofs4_root_ioctl(struct inode *, struct file *,unsigned int,unsigne
static
struct
dentry
*
autofs4_root_lookup
(
struct
inode
*
,
struct
dentry
*
);
static
struct
dentry
*
autofs4_root_lookup
(
struct
inode
*
,
struct
dentry
*
);
struct
file_operations
autofs4_root_operations
=
{
struct
file_operations
autofs4_root_operations
=
{
open:
dcache_dir_open
,
.
open
=
dcache_dir_open
,
release:
dcache_dir_close
,
.
release
=
dcache_dir_close
,
llseek:
dcache_dir_lseek
,
.
llseek
=
dcache_dir_lseek
,
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
dcache_readdir
,
.
readdir
=
dcache_readdir
,
ioctl:
autofs4_root_ioctl
,
.
ioctl
=
autofs4_root_ioctl
,
};
};
struct
inode_operations
autofs4_root_inode_operations
=
{
struct
inode_operations
autofs4_root_inode_operations
=
{
lookup:
autofs4_root_lookup
,
.
lookup
=
autofs4_root_lookup
,
unlink:
autofs4_dir_unlink
,
.
unlink
=
autofs4_dir_unlink
,
symlink:
autofs4_dir_symlink
,
.
symlink
=
autofs4_dir_symlink
,
mkdir:
autofs4_dir_mkdir
,
.
mkdir
=
autofs4_dir_mkdir
,
rmdir:
autofs4_dir_rmdir
,
.
rmdir
=
autofs4_dir_rmdir
,
};
};
struct
inode_operations
autofs4_dir_inode_operations
=
{
struct
inode_operations
autofs4_dir_inode_operations
=
{
lookup:
autofs4_dir_lookup
,
.
lookup
=
autofs4_dir_lookup
,
unlink:
autofs4_dir_unlink
,
.
unlink
=
autofs4_dir_unlink
,
symlink:
autofs4_dir_symlink
,
.
symlink
=
autofs4_dir_symlink
,
mkdir:
autofs4_dir_mkdir
,
.
mkdir
=
autofs4_dir_mkdir
,
rmdir:
autofs4_dir_rmdir
,
.
rmdir
=
autofs4_dir_rmdir
,
};
};
/* Update usage from here to top of tree, so that scan of
/* Update usage from here to top of tree, so that scan of
...
@@ -215,14 +215,14 @@ static void autofs4_dentry_release(struct dentry *de)
...
@@ -215,14 +215,14 @@ static void autofs4_dentry_release(struct dentry *de)
/* For dentries of directories in the root dir */
/* For dentries of directories in the root dir */
static
struct
dentry_operations
autofs4_root_dentry_operations
=
{
static
struct
dentry_operations
autofs4_root_dentry_operations
=
{
d_revalidate:
autofs4_root_revalidate
,
.
d_revalidate
=
autofs4_root_revalidate
,
d_release:
autofs4_dentry_release
,
.
d_release
=
autofs4_dentry_release
,
};
};
/* For other dentries */
/* For other dentries */
static
struct
dentry_operations
autofs4_dentry_operations
=
{
static
struct
dentry_operations
autofs4_dentry_operations
=
{
d_revalidate:
autofs4_revalidate
,
.
d_revalidate
=
autofs4_revalidate
,
d_release:
autofs4_dentry_release
,
.
d_release
=
autofs4_dentry_release
,
};
};
/* Lookups in non-root dirs never find anything - if it's there, it's
/* Lookups in non-root dirs never find anything - if it's there, it's
...
...
fs/autofs4/symlink.c
View file @
aaa52f23
...
@@ -27,6 +27,6 @@ static int autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
...
@@ -27,6 +27,6 @@ static int autofs4_follow_link(struct dentry *dentry, struct nameidata *nd)
}
}
struct
inode_operations
autofs4_symlink_inode_operations
=
{
struct
inode_operations
autofs4_symlink_inode_operations
=
{
readlink:
autofs4_readlink
,
.
readlink
=
autofs4_readlink
,
follow_link:
autofs4_follow_link
.
follow_link
=
autofs4_follow_link
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment