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
dd2ad358
Commit
dd2ad358
authored
Sep 21, 2002
by
Andrew Morton
Committed by
Linus Torvalds
Sep 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] 64-bit type correctness in filemap.c
From davem: replace `unsigned' with size_t.
parent
fa63ebcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mm/filemap.c
mm/filemap.c
+5
-5
No files found.
mm/filemap.c
View file @
dd2ad358
...
...
@@ -1643,7 +1643,7 @@ filemap_copy_from_user(struct page *page, unsigned long offset,
static
inline
int
__filemap_copy_from_user_iovec
(
char
*
vaddr
,
const
struct
iovec
*
iov
,
size_t
base
,
unsigned
bytes
)
const
struct
iovec
*
iov
,
size_t
base
,
size_t
bytes
)
{
int
left
=
0
;
...
...
@@ -1662,7 +1662,7 @@ __filemap_copy_from_user_iovec(char *vaddr,
static
inline
int
filemap_copy_from_user_iovec
(
struct
page
*
page
,
unsigned
long
offset
,
const
struct
iovec
*
iov
,
size_t
base
,
unsigned
bytes
)
const
struct
iovec
*
iov
,
size_t
base
,
size_t
bytes
)
{
char
*
kaddr
;
int
left
;
...
...
@@ -1679,7 +1679,7 @@ filemap_copy_from_user_iovec(struct page *page, unsigned long offset,
}
static
inline
void
filemap_set_next_iovec
(
const
struct
iovec
**
iovp
,
size_t
*
basep
,
unsigned
bytes
)
filemap_set_next_iovec
(
const
struct
iovec
**
iovp
,
size_t
*
basep
,
size_t
bytes
)
{
const
struct
iovec
*
iov
=
*
iovp
;
size_t
base
=
*
basep
;
...
...
@@ -1723,11 +1723,11 @@ generic_file_write_nolock(struct file *file, const struct iovec *iov,
struct
page
*
cached_page
=
NULL
;
ssize_t
written
;
int
err
;
unsigned
bytes
;
size_t
bytes
;
time_t
time_now
;
struct
pagevec
lru_pvec
;
const
struct
iovec
*
cur_iov
=
iov
;
/* current iovec */
unsigned
iov_base
=
0
;
/* offset in the current iovec */
size_t
iov_base
=
0
;
/* offset in the current iovec */
unsigned
long
seg
;
char
*
buf
;
...
...
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