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
f0bb5aaf
Commit
f0bb5aaf
authored
Nov 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vfs: misc struct path constification
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ca71cf71
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
fs/namei.c
fs/namei.c
+2
-2
fs/statfs.c
fs/statfs.c
+1
-1
fs/utimes.c
fs/utimes.c
+1
-1
include/linux/fs.h
include/linux/fs.h
+1
-1
No files found.
fs/namei.c
View file @
f0bb5aaf
...
...
@@ -2895,7 +2895,7 @@ bool may_open_dev(const struct path *path)
!
(
path
->
mnt
->
mnt_sb
->
s_iflags
&
SB_I_NODEV
);
}
static
int
may_open
(
struct
path
*
path
,
int
acc_mode
,
int
flag
)
static
int
may_open
(
const
struct
path
*
path
,
int
acc_mode
,
int
flag
)
{
struct
dentry
*
dentry
=
path
->
dentry
;
struct
inode
*
inode
=
dentry
->
d_inode
;
...
...
@@ -2945,7 +2945,7 @@ static int may_open(struct path *path, int acc_mode, int flag)
static
int
handle_truncate
(
struct
file
*
filp
)
{
struct
path
*
path
=
&
filp
->
f_path
;
const
struct
path
*
path
=
&
filp
->
f_path
;
struct
inode
*
inode
=
path
->
dentry
->
d_inode
;
int
error
=
get_write_access
(
inode
);
if
(
error
)
...
...
fs/statfs.c
View file @
f0bb5aaf
...
...
@@ -63,7 +63,7 @@ static int statfs_by_dentry(struct dentry *dentry, struct kstatfs *buf)
return
retval
;
}
int
vfs_statfs
(
struct
path
*
path
,
struct
kstatfs
*
buf
)
int
vfs_statfs
(
const
struct
path
*
path
,
struct
kstatfs
*
buf
)
{
int
error
;
...
...
fs/utimes.c
View file @
f0bb5aaf
...
...
@@ -48,7 +48,7 @@ static bool nsec_valid(long nsec)
return
nsec
>=
0
&&
nsec
<=
999999999
;
}
static
int
utimes_common
(
struct
path
*
path
,
struct
timespec
*
times
)
static
int
utimes_common
(
const
struct
path
*
path
,
struct
timespec
*
times
)
{
int
error
;
struct
iattr
newattrs
;
...
...
include/linux/fs.h
View file @
f0bb5aaf
...
...
@@ -2127,7 +2127,7 @@ extern struct vfsmount *collect_mounts(const struct path *);
extern
void
drop_collected_mounts
(
struct
vfsmount
*
);
extern
int
iterate_mounts
(
int
(
*
)(
struct
vfsmount
*
,
void
*
),
void
*
,
struct
vfsmount
*
);
extern
int
vfs_statfs
(
struct
path
*
,
struct
kstatfs
*
);
extern
int
vfs_statfs
(
const
struct
path
*
,
struct
kstatfs
*
);
extern
int
user_statfs
(
const
char
__user
*
,
struct
kstatfs
*
);
extern
int
fd_statfs
(
int
,
struct
kstatfs
*
);
extern
int
vfs_ustat
(
dev_t
,
struct
kstatfs
*
);
...
...
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