* Re: [PATCH] ramfs fixes [not found] <20000619182802.B22551@tweedle.linuxcare.com.au> @ 2000-06-19 14:02 ` Rik van Riel 2000-06-20 3:20 ` David Gibson 0 siblings, 1 reply; 3+ messages in thread From: Rik van Riel @ 2000-06-19 14:02 UTC (permalink / raw) To: David Gibson; +Cc: linux-fsdevel, linux-kernel, linux-mm On Mon, 19 Jun 2000, David Gibson wrote: > The PG_dirty bit is cleared in add_to_swap_cache() and > __add_to_page_cache() so this is kind of redundant, but the > detach_page hook is good news in general. Oww, good that you alert me to this bug. It makes no sense to clear the bit there since we may have dirty pages in both the filecache and the swapcache... (well, it doesn't cause any bugs, but it could add some nasty surprises later when we change the code so we can have dirty pages in all the caches) regards, Rik -- The Internet is not a network of computers. It is a network of people. That is its real strength. Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies http://www.conectiva.com/ http://www.surriel.com/ -- 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.eu.org/Linux-MM/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ramfs fixes 2000-06-19 14:02 ` [PATCH] ramfs fixes Rik van Riel @ 2000-06-20 3:20 ` David Gibson 2000-06-20 11:57 ` Juan J. Quintela 0 siblings, 1 reply; 3+ messages in thread From: David Gibson @ 2000-06-20 3:20 UTC (permalink / raw) To: Rik van Riel; +Cc: David Gibson, linux-fsdevel, linux-kernel, linux-mm On Mon, Jun 19, 2000 at 11:02:22AM -0300, Rik van Riel wrote: > On Mon, 19 Jun 2000, David Gibson wrote: > > > The PG_dirty bit is cleared in add_to_swap_cache() and > > __add_to_page_cache() so this is kind of redundant, but the > > detach_page hook is good news in general. > > Oww, good that you alert me to this bug. It makes no sense to > clear the bit there since we may have dirty pages in both the > filecache and the swapcache... > > (well, it doesn't cause any bugs, but it could add some nasty > surprises later when we change the code so we can have dirty > pages in all the caches) This actually went in somewhat recently, in 2.3.99pre something (where something is around 4 IIRC). This fixed a bug in ramfs, since previously the dirty bit was never being cleared. At the time ramfs was the *only* place using PG_dirty - it looked like it was just a misleading name for something analagous to BH_protected. Obviously that's not true any more. What does the PG_dirty bit mean these days? -- David Gibson, Technical Support Engineer, Linuxcare, Inc. +61 2 6262 8990 dgibson@linuxcare.com, http://www.linuxcare.com/ Linuxcare. Support for the revolution. -- 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.eu.org/Linux-MM/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ramfs fixes 2000-06-20 3:20 ` David Gibson @ 2000-06-20 11:57 ` Juan J. Quintela 0 siblings, 0 replies; 3+ messages in thread From: Juan J. Quintela @ 2000-06-20 11:57 UTC (permalink / raw) To: David Gibson; +Cc: Rik van Riel, linux-fsdevel, linux-kernel, linux-mm >>>>> "david" == David Gibson <dgibson@linuxcare.com> writes: Hi david> This actually went in somewhat recently, in 2.3.99pre something (where david> something is around 4 IIRC). This fixed a bug in ramfs, since david> previously the dirty bit was never being cleared. david> At the time ramfs was the *only* place using PG_dirty - it looked like david> it was just a misleading name for something analagous to BH_protected. david> Obviously that's not true any more. What does the PG_dirty bit mean david> these days? It means that the page is Dirty??? :))))) Seriosly, now we can have dirty swap cache pages and soon dirty page cache pages, coming from mmaped files, not only pages from Ramfs have that bit set. Later, Juan. -- In theory, practice and theory are the same, but in practice they are different -- Larry McVoy -- 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.eu.org/Linux-MM/ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-06-20 11:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20000619182802.B22551@tweedle.linuxcare.com.au>
2000-06-19 14:02 ` [PATCH] ramfs fixes Rik van Riel
2000-06-20 3:20 ` David Gibson
2000-06-20 11:57 ` Juan J. Quintela
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox