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
fe29f768
Commit
fe29f768
authored
Jul 26, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6
parents
49763ec3
59ddc721
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
18 deletions
+6
-18
mm/filemap.c
mm/filemap.c
+3
-9
mm/shmem.c
mm/shmem.c
+3
-9
No files found.
mm/filemap.c
View file @
fe29f768
...
...
@@ -1421,16 +1421,10 @@ static int filemap_populate(struct vm_area_struct *vma,
return
err
;
}
}
else
{
/*
* If a nonlinear mapping then store the file page offset
* in the pte.
*/
if
(
pgoff
!=
linear_page_index
(
vma
,
addr
))
{
err
=
install_file_pte
(
mm
,
vma
,
addr
,
pgoff
,
prot
);
if
(
err
)
return
err
;
}
}
len
-=
PAGE_SIZE
;
addr
+=
PAGE_SIZE
;
...
...
mm/shmem.c
View file @
fe29f768
...
...
@@ -1121,16 +1121,10 @@ static int shmem_populate(struct vm_area_struct *vma,
return
err
;
}
}
else
if
(
nonblock
)
{
/*
* If a nonlinear mapping then store the file page
* offset in the pte.
*/
if
(
pgoff
!=
linear_page_index
(
vma
,
addr
))
{
err
=
install_file_pte
(
mm
,
vma
,
addr
,
pgoff
,
prot
);
if
(
err
)
return
err
;
}
}
len
-=
PAGE_SIZE
;
addr
+=
PAGE_SIZE
;
...
...
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