ramfs fixes
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · David Gibson
The
PG_dirtybit is cleared inadd_to_swap_cache()and__add_to_page_cache()so this is kind of redundant, but thedetach_pagehook 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 [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
Quoted 6 lines · Rik van Riel
Quoted 3 lines · David Gibson
The
PG_dirtybit is cleared inadd_to_swap_cache()and__add_to_page_cache()so this is kind of redundant, but thedetach_pagehook is good news in general.
Quoted 7 lines
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?
Signature · 8 lines
David Gibson, Technical Support Engineer, Linuxcare, Inc. +61 2 6262 8990 [email protected], http://www.linuxcare.com/ Linuxcare. Support for the revolution. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"david" == David Gibson <[email protected]> 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.
Signature · 6 lines
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 [email protected]. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/