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
f42ba7ce
Commit
f42ba7ce
authored
Jul 29, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driverfs: Remove struct driver_file_entry::parent, as we can get to it by the dentry
of the directory itself
parent
a4a9a623
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
fs/driverfs/inode.c
fs/driverfs/inode.c
+0
-9
include/linux/driverfs_fs.h
include/linux/driverfs_fs.h
+0
-1
No files found.
fs/driverfs/inode.c
View file @
f42ba7ce
...
...
@@ -654,11 +654,6 @@ driverfs_create_file(struct driver_file_entry * entry,
if
(
!
IS_ERR
(
dentry
))
{
dentry
->
d_fsdata
=
(
void
*
)
entry
;
error
=
driverfs_create
(
parent
->
dentry
->
d_inode
,
dentry
,
entry
->
mode
);
/* Still good? Ok, then fill in the blanks: */
if
(
!
error
)
{
entry
->
parent
=
parent
;
}
}
else
error
=
PTR_ERR
(
dentry
);
up
(
&
parent
->
dentry
->
d_inode
->
i_sem
);
...
...
@@ -699,10 +694,6 @@ int driverfs_create_symlink(struct driver_dir_entry * parent,
if
(
!
IS_ERR
(
dentry
))
{
dentry
->
d_fsdata
=
(
void
*
)
entry
;
error
=
driverfs_symlink
(
parent
->
dentry
->
d_inode
,
dentry
,
target
);
if
(
!
error
)
{
dentry
->
d_inode
->
u
.
generic_ip
=
(
void
*
)
entry
;
entry
->
parent
=
parent
;
}
}
else
error
=
PTR_ERR
(
dentry
);
up
(
&
parent
->
dentry
->
d_inode
->
i_sem
);
...
...
include/linux/driverfs_fs.h
View file @
f42ba7ce
...
...
@@ -35,7 +35,6 @@ struct driver_dir_entry {
struct
device
;
struct
driver_file_entry
{
struct
driver_dir_entry
*
parent
;
char
*
name
;
mode_t
mode
;
...
...
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