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
68d70d03
Commit
68d70d03
authored
Jun 19, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify rw_verify_area()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ee324652
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
fs/aio.c
fs/aio.c
+2
-0
fs/internal.h
fs/internal.h
+1
-0
fs/read_write.c
fs/read_write.c
+1
-1
include/linux/fs.h
include/linux/fs.h
+0
-1
No files found.
fs/aio.c
View file @
68d70d03
...
@@ -39,6 +39,8 @@
...
@@ -39,6 +39,8 @@
#include <asm/kmap_types.h>
#include <asm/kmap_types.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include "internal.h"
#define AIO_RING_MAGIC 0xa10a10a1
#define AIO_RING_MAGIC 0xa10a10a1
#define AIO_RING_COMPAT_FEATURES 1
#define AIO_RING_COMPAT_FEATURES 1
#define AIO_RING_INCOMPAT_FEATURES 0
#define AIO_RING_INCOMPAT_FEATURES 0
...
...
fs/internal.h
View file @
68d70d03
...
@@ -131,6 +131,7 @@ extern struct dentry *__d_alloc(struct super_block *, const struct qstr *);
...
@@ -131,6 +131,7 @@ extern struct dentry *__d_alloc(struct super_block *, const struct qstr *);
* read_write.c
* read_write.c
*/
*/
extern
ssize_t
__kernel_write
(
struct
file
*
,
const
char
*
,
size_t
,
loff_t
*
);
extern
ssize_t
__kernel_write
(
struct
file
*
,
const
char
*
,
size_t
,
loff_t
*
);
extern
int
rw_verify_area
(
int
,
struct
file
*
,
const
loff_t
*
,
size_t
);
/*
/*
* splice.c
* splice.c
...
...
fs/read_write.c
View file @
68d70d03
...
@@ -316,7 +316,7 @@ SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high,
...
@@ -316,7 +316,7 @@ SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high,
* them to something that fits in "int" so that others
* them to something that fits in "int" so that others
* won't have to do range checks all the time.
* won't have to do range checks all the time.
*/
*/
int
rw_verify_area
(
int
read_write
,
struct
file
*
file
,
loff_t
*
ppos
,
size_t
count
)
int
rw_verify_area
(
int
read_write
,
struct
file
*
file
,
const
loff_t
*
ppos
,
size_t
count
)
{
{
struct
inode
*
inode
;
struct
inode
*
inode
;
loff_t
pos
;
loff_t
pos
;
...
...
include/linux/fs.h
View file @
68d70d03
...
@@ -1898,7 +1898,6 @@ extern int current_umask(void);
...
@@ -1898,7 +1898,6 @@ extern int current_umask(void);
extern
struct
kobject
*
fs_kobj
;
extern
struct
kobject
*
fs_kobj
;
#define MAX_RW_COUNT (INT_MAX & PAGE_CACHE_MASK)
#define MAX_RW_COUNT (INT_MAX & PAGE_CACHE_MASK)
extern
int
rw_verify_area
(
int
,
struct
file
*
,
loff_t
*
,
size_t
);
#define FLOCK_VERIFY_READ 1
#define FLOCK_VERIFY_READ 1
#define FLOCK_VERIFY_WRITE 2
#define FLOCK_VERIFY_WRITE 2
...
...
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