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
9b73fab0
Commit
9b73fab0
authored
Jan 25, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fold debugfs_link() into caller
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ad5abd5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
fs/debugfs/inode.c
fs/debugfs/inode.c
+2
-9
No files found.
fs/debugfs/inode.c
View file @
9b73fab0
...
...
@@ -103,14 +103,6 @@ static int debugfs_mkdir(struct dentry *dentry, umode_t mode)
return
res
;
}
static
int
debugfs_link
(
struct
dentry
*
dentry
,
umode_t
mode
,
void
*
data
)
{
struct
inode
*
dir
=
dentry
->
d_parent
->
d_inode
;
mode
=
(
mode
&
S_IALLUGO
)
|
S_IFLNK
;
return
debugfs_mknod
(
dir
,
dentry
,
mode
,
0
,
data
,
NULL
);
}
static
int
debugfs_create
(
struct
dentry
*
dentry
,
umode_t
mode
,
void
*
data
,
const
struct
file_operations
*
fops
)
{
...
...
@@ -466,7 +458,8 @@ struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
return
NULL
;
}
error
=
debugfs_link
(
dentry
,
S_IFLNK
|
S_IRWXUGO
,
link
);
error
=
debugfs_mknod
(
dentry
->
d_parent
->
d_inode
,
dentry
,
S_IFLNK
|
S_IRWXUGO
,
0
,
link
,
NULL
);
if
(
error
)
kfree
(
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