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
14699e90
Commit
14699e90
authored
Jun 18, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: nfs partial annotation
parent
0ba45b3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
fs/nfs/direct.c
fs/nfs/direct.c
+1
-1
fs/nfs/idmap.c
fs/nfs/idmap.c
+6
-5
include/linux/nfs4_mount.h
include/linux/nfs4_mount.h
+3
-3
No files found.
fs/nfs/direct.c
View file @
14699e90
...
...
@@ -475,7 +475,7 @@ nfs_file_direct_read(struct kiocb *iocb, char __user *buf, size_t count, loff_t
struct
address_space
*
mapping
=
file
->
f_mapping
;
struct
inode
*
inode
=
mapping
->
host
;
struct
iovec
iov
=
{
.
iov_base
=
(
char
*
)
buf
,
.
iov_base
=
buf
,
.
iov_len
=
count
,
};
...
...
fs/nfs/idmap.c
View file @
14699e90
...
...
@@ -75,9 +75,10 @@ struct idmap {
struct
idmap_hashtable
idmap_group_hash
;
};
static
ssize_t
idmap_pipe_upcall
(
struct
file
*
,
struct
rpc_pipe_msg
*
,
char
*
,
size_t
);
static
ssize_t
idmap_pipe_downcall
(
struct
file
*
,
const
char
*
,
size_t
);
static
ssize_t
idmap_pipe_upcall
(
struct
file
*
,
struct
rpc_pipe_msg
*
,
char
__user
*
,
size_t
);
static
ssize_t
idmap_pipe_downcall
(
struct
file
*
,
const
char
__user
*
,
size_t
);
void
idmap_pipe_destroy_msg
(
struct
rpc_pipe_msg
*
);
static
unsigned
int
fnvhash32
(
const
void
*
,
size_t
);
...
...
@@ -332,7 +333,7 @@ nfs_idmap_name(struct idmap *idmap, struct idmap_hashtable *h,
/* RPC pipefs upcall/downcall routines */
static
ssize_t
idmap_pipe_upcall
(
struct
file
*
filp
,
struct
rpc_pipe_msg
*
msg
,
char
*
dst
,
size_t
buflen
)
char
__user
*
dst
,
size_t
buflen
)
{
char
*
data
=
(
char
*
)
msg
->
data
+
msg
->
copied
;
ssize_t
mlen
=
msg
->
len
-
msg
->
copied
;
...
...
@@ -353,7 +354,7 @@ idmap_pipe_upcall(struct file *filp, struct rpc_pipe_msg *msg,
}
static
ssize_t
idmap_pipe_downcall
(
struct
file
*
filp
,
const
char
*
src
,
size_t
mlen
)
idmap_pipe_downcall
(
struct
file
*
filp
,
const
char
__user
*
src
,
size_t
mlen
)
{
struct
rpc_inode
*
rpci
=
RPC_I
(
filp
->
f_dentry
->
d_inode
);
struct
idmap
*
idmap
=
(
struct
idmap
*
)
rpci
->
private
;
...
...
include/linux/nfs4_mount.h
View file @
14699e90
...
...
@@ -20,7 +20,7 @@
struct
nfs_string
{
unsigned
int
len
;
const
char
*
data
;
const
char
__user
*
data
;
};
struct
nfs4_mount_data
{
...
...
@@ -45,14 +45,14 @@ struct nfs4_mount_data {
struct
nfs_string
hostname
;
/* 1 */
/* Server IP address */
unsigned
int
host_addrlen
;
/* 1 */
struct
sockaddr
*
host_addr
;
/* 1 */
struct
sockaddr
__user
*
host_addr
;
/* 1 */
/* Transport protocol to use */
int
proto
;
/* 1 */
/* Pseudo-flavours to use for authentication. See RFC2623 */
int
auth_flavourlen
;
/* 1 */
int
*
auth_flavours
;
/* 1 */
int
__user
*
auth_flavours
;
/* 1 */
};
/* bits in the flags field */
...
...
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