Here is the patch for fixing this in 2.6.17:

--- linux-2.6.x/fs/ramfs/file-nommu.c   2009-08-18 16:58:28.000000000 
-0500
+++ linux-2.6.x/fs/ramfs/file-nommu.c   2010-01-27 16:42:54.000000000 
-0600
@@ -110,6 +110,9 @@
                if (!pagevec_add(&lru_pvec, page))
                        __pagevec_lru_add(&lru_pvec);
 
+        /* prevent the page from being discarded on memory pressure */
+        SetPageDirty(page);
+
                unlock_page(page);
        }
 
John Moore




Philippe De Muyter <p...@macqel.be> 
Sent by: uclinux-dev-boun...@uclinux.org
02/01/2010 04:43 AM
Please respond to
uClinux development list <uclinux-dev@uclinux.org>


To
uClinux development list <uclinux-dev@uclinux.org>
cc

Subject
Re: [uClinux-dev] Disk Cache overlaying Shared Memory?






On Wed, Jan 27, 2010 at 05:26:25PM -0600, John B Moore wrote:
>  This bug has been found and fixed. The issue was a missing SetPageDirty 

> in ramfs_nommu_expand_for_mapping in fs/ramfs/file-nommu.c. This allowed 

> the ramfs shared memory storage to be considered for being freed from 
the 
> pagecache in shrink_active_list . This problem appears to have been 
fixed 
> in later releases in the ramfs driver since the newer driver already has 

> the SetPageDirty call added, but just in case someone else runs into 
this 

What's the patch actually ?

Philippe
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev






This e-mail, including attachments, may contain information that is 
confidential and/or proprietary, and may only be used by the person to 
whom this email is addressed. If the recipient of this e-mail is not the 
intended recipient or an authorized agent, the reader is hereby notified 
that any dissemination, distribution, or copying of this e-mail is 
prohibited. If this e-mail has been delivered to you in error, please 
notify the sender by replying to this message and deleting this e-mail 
immediately.
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to