Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
786e1448
Commit
786e1448
authored
11 years ago
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
cgroup: we can use simple_lookup() now
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6e8cd2cb
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/cgroup.c
+1
-10
1 addition, 10 deletions
kernel/cgroup.c
with
1 addition
and
10 deletions
kernel/cgroup.c
+
1
−
10
View file @
786e1448
...
@@ -802,7 +802,6 @@ static struct cgroup *task_cgroup_from_root(struct task_struct *task,
...
@@ -802,7 +802,6 @@ static struct cgroup *task_cgroup_from_root(struct task_struct *task,
*/
*/
static
int
cgroup_mkdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
static
int
cgroup_mkdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
static
struct
dentry
*
cgroup_lookup
(
struct
inode
*
,
struct
dentry
*
,
unsigned
int
);
static
int
cgroup_rmdir
(
struct
inode
*
unused_dir
,
struct
dentry
*
dentry
);
static
int
cgroup_rmdir
(
struct
inode
*
unused_dir
,
struct
dentry
*
dentry
);
static
int
cgroup_populate_dir
(
struct
cgroup
*
cgrp
,
bool
base_files
,
static
int
cgroup_populate_dir
(
struct
cgroup
*
cgrp
,
bool
base_files
,
unsigned
long
subsys_mask
);
unsigned
long
subsys_mask
);
...
@@ -2642,7 +2641,7 @@ static const struct inode_operations cgroup_file_inode_operations = {
...
@@ -2642,7 +2641,7 @@ static const struct inode_operations cgroup_file_inode_operations = {
};
};
static
const
struct
inode_operations
cgroup_dir_inode_operations
=
{
static
const
struct
inode_operations
cgroup_dir_inode_operations
=
{
.
lookup
=
cgroup
_lookup
,
.
lookup
=
simple
_lookup
,
.
mkdir
=
cgroup_mkdir
,
.
mkdir
=
cgroup_mkdir
,
.
rmdir
=
cgroup_rmdir
,
.
rmdir
=
cgroup_rmdir
,
.
rename
=
cgroup_rename
,
.
rename
=
cgroup_rename
,
...
@@ -2652,14 +2651,6 @@ static const struct inode_operations cgroup_dir_inode_operations = {
...
@@ -2652,14 +2651,6 @@ static const struct inode_operations cgroup_dir_inode_operations = {
.
removexattr
=
cgroup_removexattr
,
.
removexattr
=
cgroup_removexattr
,
};
};
static
struct
dentry
*
cgroup_lookup
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
unsigned
int
flags
)
{
if
(
dentry
->
d_name
.
len
>
NAME_MAX
)
return
ERR_PTR
(
-
ENAMETOOLONG
);
d_add
(
dentry
,
NULL
);
return
NULL
;
}
/*
/*
* Check if a file is a control file
* Check if a file is a control file
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment