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
Kirill Smelkov
linux
Commits
915a4d4c
Commit
915a4d4c
authored
Jul 24, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driverfs: don't use VFS for directory creation
Call driverfs_mkdir directly, instead of going through vfs.
parent
99264544
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
fs/driverfs/inode.c
fs/driverfs/inode.c
+3
-5
No files found.
fs/driverfs/inode.c
View file @
915a4d4c
...
...
@@ -50,7 +50,6 @@
static
struct
super_operations
driverfs_ops
;
static
struct
file_operations
driverfs_file_operations
;
static
struct
inode_operations
driverfs_dir_inode_operations
;
static
struct
dentry_operations
driverfs_dentry_dir_ops
;
static
struct
dentry_operations
driverfs_dentry_file_ops
;
static
struct
address_space_operations
driverfs_aops
;
...
...
@@ -148,8 +147,8 @@ static int driverfs_mknod(struct inode *dir, struct dentry *dentry, int mode, in
static
int
driverfs_mkdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
int
mode
)
{
int
res
;
dentry
->
d_op
=
&
driverfs_dentry_dir_ops
;
res
=
driverfs_mknod
(
dir
,
dentry
,
mode
|
S_IFDIR
,
0
);
mode
=
(
mode
&
(
S_IRWXUGO
|
S_ISVTX
))
|
S_IFDIR
;
res
=
driverfs_mknod
(
dir
,
dentry
,
mode
,
0
);
if
(
!
res
)
dir
->
i_nlink
++
;
return
res
;
...
...
@@ -428,7 +427,6 @@ static struct inode_operations driverfs_dir_inode_operations = {
.
lookup
=
simple_lookup
,
.
unlink
=
driverfs_unlink
,
.
symlink
=
driverfs_symlink
,
.
mkdir
=
driverfs_mkdir
,
.
rmdir
=
driverfs_rmdir
,
};
...
...
@@ -581,7 +579,7 @@ driverfs_create_dir(struct driver_dir_entry * entry,
if
(
!
IS_ERR
(
dentry
))
{
dentry
->
d_fsdata
=
(
void
*
)
entry
;
entry
->
dentry
=
dentry
;
error
=
v
fs_mkdir
(
parent_dentry
->
d_inode
,
dentry
,
entry
->
mode
);
error
=
driver
fs_mkdir
(
parent_dentry
->
d_inode
,
dentry
,
entry
->
mode
);
}
else
error
=
PTR_ERR
(
dentry
);
up
(
&
parent_dentry
->
d_inode
->
i_sem
);
...
...
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