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
3442d2c4
Commit
3442d2c4
authored
Jul 29, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driverfs: Remove struct driver_dir_entry::files, since it's not being used anymore
parent
eb46f652
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
6 deletions
+0
-6
drivers/base/fs.c
drivers/base/fs.c
+0
-1
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.
drivers/base/fs.c
View file @
3442d2c4
...
...
@@ -156,7 +156,6 @@ int device_bus_link(struct device * dev)
int
device_create_dir
(
struct
driver_dir_entry
*
dir
,
struct
driver_dir_entry
*
parent
)
{
INIT_LIST_HEAD
(
&
dir
->
files
);
dir
->
mode
=
(
S_IFDIR
|
S_IRWXU
|
S_IRUGO
|
S_IXUGO
);
return
driverfs_create_dir
(
dir
,
parent
);
}
...
...
fs/driverfs/inode.c
View file @
3442d2c4
...
...
@@ -735,8 +735,6 @@ void driverfs_remove_file(struct driver_dir_entry * dir, const char * name)
dentry
=
lookup_hash
(
&
qstr
,
dir
->
dentry
);
if
(
!
IS_ERR
(
dentry
))
{
struct
driver_file_entry
*
entry
=
dentry
->
d_fsdata
;
/* make sure dentry is really there */
if
(
dentry
->
d_inode
&&
(
dentry
->
d_parent
->
d_inode
==
dir
->
dentry
->
d_inode
))
{
...
...
@@ -770,10 +768,8 @@ void driverfs_remove_dir(struct driver_dir_entry * dir)
node
=
dentry
->
d_subdirs
.
next
;
while
(
node
!=
&
dentry
->
d_subdirs
)
{
struct
dentry
*
d
=
list_entry
(
node
,
struct
dentry
,
d_child
);
struct
driver_file_entry
*
entry
=
d
->
d_fsdata
;
node
=
node
->
next
;
driverfs_unlink
(
dentry
->
d_inode
,
d
);
dput
(
dentry
);
put_mount
();
...
...
include/linux/driverfs_fs.h
View file @
3442d2c4
...
...
@@ -30,7 +30,6 @@ struct driver_dir_entry {
char
*
name
;
struct
dentry
*
dentry
;
mode_t
mode
;
struct
list_head
files
;
};
struct
device
;
...
...
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