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
Kirill Smelkov
linux
Commits
a4141d7c
Commit
a4141d7c
authored
Nov 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify alloc_file()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
92872094
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fs/file_table.c
fs/file_table.c
+1
-1
include/linux/file.h
include/linux/file.h
+1
-1
No files found.
fs/file_table.c
View file @
a4141d7c
...
@@ -155,7 +155,7 @@ struct file *get_empty_filp(void)
...
@@ -155,7 +155,7 @@ struct file *get_empty_filp(void)
* @mode: the mode with which the new file will be opened
* @mode: the mode with which the new file will be opened
* @fop: the 'struct file_operations' for the new file
* @fop: the 'struct file_operations' for the new file
*/
*/
struct
file
*
alloc_file
(
struct
path
*
path
,
fmode_t
mode
,
struct
file
*
alloc_file
(
const
struct
path
*
path
,
fmode_t
mode
,
const
struct
file_operations
*
fop
)
const
struct
file_operations
*
fop
)
{
{
struct
file
*
file
;
struct
file
*
file
;
...
...
include/linux/file.h
View file @
a4141d7c
...
@@ -17,7 +17,7 @@ struct file_operations;
...
@@ -17,7 +17,7 @@ struct file_operations;
struct
vfsmount
;
struct
vfsmount
;
struct
dentry
;
struct
dentry
;
struct
path
;
struct
path
;
extern
struct
file
*
alloc_file
(
struct
path
*
,
fmode_t
mode
,
extern
struct
file
*
alloc_file
(
const
struct
path
*
,
fmode_t
mode
,
const
struct
file_operations
*
fop
);
const
struct
file_operations
*
fop
);
static
inline
void
fput_light
(
struct
file
*
file
,
int
fput_needed
)
static
inline
void
fput_light
(
struct
file
*
file
,
int
fput_needed
)
...
...
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