* Doubt in dup_mmap()
@ 2002-06-09 12:42 Abhishek Nayani
0 siblings, 0 replies; only message in thread
From: Abhishek Nayani @ 2002-06-09 12:42 UTC (permalink / raw)
To: linux-mm
Hi all,
In the function dup_mmap() in kernel/fork.c,
file = tmp->vm_file;
if (file) {
struct inode *inode = file->f_dentry->d_inode;
get_file(file);
if(tmp->vm_flags & VM_DENYWRITE)
atomic_dec(&inode->i_writecount);
After this piece of code, shouldn't there be :
else
atomic_inc(&inode->i_writecount);
as this is a read-write mapping ?
Bye,
Abhi.
Linux Kernel Documentation Project
http://freesoftware.fsf.org/lkdp
--------------------------------------------------------------------------------
Those who cannot remember the past are condemned to repeat it - George Santayana
--------------------------------------------------------------------------------
Home Page: http://www.abhi.tk
-----BEGIN GEEK CODE BLOCK------------------------------------------------------
GCS d+ s:- a-- C+++ UL P+ L+++ E- W++ N+ o K- w--- O-- M- V- PS PE Y PGP
t+ 5 X+ R- tv+ b+++ DI+ D G e++ h! !r y-
------END GEEK CODE BLOCK-------------------------------------------------------
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-09 12:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-09 12:42 Doubt in dup_mmap() Abhishek Nayani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox