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
c0713be8
Commit
c0713be8
authored
May 20, 2002
by
Linus Torvalds
Committed by
Linus Torvalds
May 20, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix double i_writecount handling (Tony Luck)
parent
99ef44b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
mm/mmap.c
mm/mmap.c
+2
-6
No files found.
mm/mmap.c
View file @
c0713be8
...
...
@@ -911,12 +911,8 @@ static int splitvma(struct mm_struct *mm, struct vm_area_struct *mpnt, unsigned
new
->
vm_start
=
addr
;
new
->
vm_pgoff
=
mpnt
->
vm_pgoff
+
((
addr
-
mpnt
->
vm_start
)
>>
PAGE_SHIFT
);
new
->
vm_raend
=
0
;
if
(
mpnt
->
vm_file
)
{
struct
file
*
file
=
mpnt
->
vm_file
;
get_file
(
file
);
if
(
mpnt
->
vm_flags
&
VM_DENYWRITE
)
atomic_dec
(
&
file
->
f_dentry
->
d_inode
->
i_writecount
);
}
if
(
mpnt
->
vm_file
)
get_file
(
mpnt
->
vm_file
);
if
(
mpnt
->
vm_ops
&&
mpnt
->
vm_ops
->
open
)
mpnt
->
vm_ops
->
open
(
mpnt
);
...
...
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