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
d72f71eb
Commit
d72f71eb
authored
Feb 20, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify dentry_operations: procfs
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
5a3fd05a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
fs/proc/base.c
fs/proc/base.c
+3
-3
fs/proc/generic.c
fs/proc/generic.c
+1
-1
fs/proc/proc_sysctl.c
fs/proc/proc_sysctl.c
+2
-2
No files found.
fs/proc/base.c
View file @
d72f71eb
...
...
@@ -1545,7 +1545,7 @@ static int pid_delete_dentry(struct dentry * dentry)
return
!
proc_pid
(
dentry
->
d_inode
)
->
tasks
[
PIDTYPE_PID
].
first
;
}
static
struct
dentry_operations
pid_dentry_operations
=
static
const
struct
dentry_operations
pid_dentry_operations
=
{
.
d_revalidate
=
pid_revalidate
,
.
d_delete
=
pid_delete_dentry
,
...
...
@@ -1717,7 +1717,7 @@ static int tid_fd_revalidate(struct dentry *dentry, struct nameidata *nd)
return
0
;
}
static
struct
dentry_operations
tid_fd_dentry_operations
=
static
const
struct
dentry_operations
tid_fd_dentry_operations
=
{
.
d_revalidate
=
tid_fd_revalidate
,
.
d_delete
=
pid_delete_dentry
,
...
...
@@ -2339,7 +2339,7 @@ static int proc_base_revalidate(struct dentry *dentry, struct nameidata *nd)
return
0
;
}
static
struct
dentry_operations
proc_base_dentry_operations
=
static
const
struct
dentry_operations
proc_base_dentry_operations
=
{
.
d_revalidate
=
proc_base_revalidate
,
.
d_delete
=
pid_delete_dentry
,
...
...
fs/proc/generic.c
View file @
d72f71eb
...
...
@@ -363,7 +363,7 @@ static int proc_delete_dentry(struct dentry * dentry)
return
1
;
}
static
struct
dentry_operations
proc_dentry_operations
=
static
const
struct
dentry_operations
proc_dentry_operations
=
{
.
d_delete
=
proc_delete_dentry
,
};
...
...
fs/proc/proc_sysctl.c
View file @
d72f71eb
...
...
@@ -7,7 +7,7 @@
#include <linux/security.h>
#include "internal.h"
static
struct
dentry_operations
proc_sys_dentry_operations
;
static
const
struct
dentry_operations
proc_sys_dentry_operations
;
static
const
struct
file_operations
proc_sys_file_operations
;
static
const
struct
inode_operations
proc_sys_inode_operations
;
static
const
struct
file_operations
proc_sys_dir_file_operations
;
...
...
@@ -396,7 +396,7 @@ static int proc_sys_compare(struct dentry *dir, struct qstr *qstr,
return
!
sysctl_is_seen
(
PROC_I
(
dentry
->
d_inode
)
->
sysctl
);
}
static
struct
dentry_operations
proc_sys_dentry_operations
=
{
static
const
struct
dentry_operations
proc_sys_dentry_operations
=
{
.
d_revalidate
=
proc_sys_revalidate
,
.
d_delete
=
proc_sys_delete
,
.
d_compare
=
proc_sys_compare
,
...
...
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