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
eb46f652
Commit
eb46f652
authored
Jul 29, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driverfs: don't do addition/deletion of driver_file_entry's into local lists,
as we don't use the lists anymore
parent
5add6eb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
fs/driverfs/inode.c
fs/driverfs/inode.c
+0
-4
include/linux/driverfs_fs.h
include/linux/driverfs_fs.h
+0
-1
No files found.
fs/driverfs/inode.c
View file @
eb46f652
...
...
@@ -658,7 +658,6 @@ driverfs_create_file(struct driver_file_entry * entry,
dentry
->
d_inode
->
u
.
generic_ip
=
(
void
*
)
entry
;
entry
->
dentry
=
dentry
;
entry
->
parent
=
parent
;
list_add_tail
(
&
entry
->
node
,
&
parent
->
files
);
}
}
else
error
=
PTR_ERR
(
dentry
);
...
...
@@ -704,7 +703,6 @@ int driverfs_create_symlink(struct driver_dir_entry * parent,
dentry
->
d_inode
->
u
.
generic_ip
=
(
void
*
)
entry
;
entry
->
dentry
=
dentry
;
entry
->
parent
=
parent
;
list_add_tail
(
&
entry
->
node
,
&
parent
->
files
);
}
}
else
error
=
PTR_ERR
(
dentry
);
...
...
@@ -742,7 +740,6 @@ void driverfs_remove_file(struct driver_dir_entry * dir, const char * name)
/* make sure dentry is really there */
if
(
dentry
->
d_inode
&&
(
dentry
->
d_parent
->
d_inode
==
dir
->
dentry
->
d_inode
))
{
list_del_init
(
&
entry
->
node
);
driverfs_unlink
(
dir
->
dentry
->
d_inode
,
dentry
);
dput
(
dir
->
dentry
);
put_mount
();
...
...
@@ -777,7 +774,6 @@ void driverfs_remove_dir(struct driver_dir_entry * dir)
node
=
node
->
next
;
list_del_init
(
&
entry
->
node
);
driverfs_unlink
(
dentry
->
d_inode
,
d
);
dput
(
dentry
);
put_mount
();
...
...
include/linux/driverfs_fs.h
View file @
eb46f652
...
...
@@ -37,7 +37,6 @@ struct device;
struct
driver_file_entry
{
struct
driver_dir_entry
*
parent
;
struct
list_head
node
;
char
*
name
;
mode_t
mode
;
struct
dentry
*
dentry
;
...
...
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