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
02538a75
Commit
02538a75
authored
Jan 25, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fold debugfs_mkdir() into caller
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
160f7592
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
fs/debugfs/inode.c
fs/debugfs/inode.c
+6
-15
No files found.
fs/debugfs/inode.c
View file @
02538a75
...
...
@@ -84,20 +84,6 @@ static int debugfs_mknod(struct dentry *dentry,
return
0
;
}
static
int
debugfs_mkdir
(
struct
dentry
*
dentry
,
umode_t
mode
)
{
struct
inode
*
dir
=
dentry
->
d_parent
->
d_inode
;
int
res
;
mode
=
(
mode
&
(
S_IRWXUGO
|
S_ISVTX
))
|
S_IFDIR
;
res
=
debugfs_mknod
(
dentry
,
mode
,
NULL
,
NULL
);
if
(
!
res
)
{
inc_nlink
(
dir
);
fsnotify_mkdir
(
dir
,
dentry
);
}
return
res
;
}
static
int
debugfs_create
(
struct
dentry
*
dentry
,
umode_t
mode
,
void
*
data
,
const
struct
file_operations
*
fops
)
{
...
...
@@ -407,7 +393,12 @@ struct dentry *debugfs_create_dir(const char *name, struct dentry *parent)
if
(
IS_ERR
(
dentry
))
return
NULL
;
error
=
debugfs_mkdir
(
dentry
,
S_IFDIR
|
S_IRWXU
|
S_IRUGO
|
S_IXUGO
);
error
=
debugfs_mknod
(
dentry
,
S_IFDIR
|
S_IRWXU
|
S_IRUGO
|
S_IXUGO
,
NULL
,
NULL
);
if
(
!
error
)
{
inc_nlink
(
dentry
->
d_parent
->
d_inode
);
fsnotify_mkdir
(
dentry
->
d_parent
->
d_inode
,
dentry
);
}
return
end_creating
(
dentry
,
error
);
}
EXPORT_SYMBOL_GPL
(
debugfs_create_dir
);
...
...
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