Skip to contentSkip to conversation

Anyone still caring about 2.4?

parisc-linux Matthew Wilcox 2 participants 2 messages Mar 10, 2004 – Mar 14, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I was just looking at a 2.4 problem for lamont so I went back to a 2.4 tree I had lying around. I found this diff:

Index: mm/memory.c
===================================================================
RCS file: /var/cvs/linux-2.4/mm/memory.c,v
retrieving revision 1.25

mm/memory.c 1 Dec 2003 23:08:32 -0000 renamed from mm/memory.c 1 Dec 2003 22:52:15 -0000 1.25 +1 -6
diff -u -p -r1.25 memory.c
@@ -569,12 +569,7 @@ int map_user_kiobuf(int rw, struct kiobu
                return err;
        }
        iobuf->nr_pages = err;
-       while (pgcount--) {
-               /* FIXME: flush superflous for rw==READ,
-                * probably wrong function for rw==WRITE
-                */
-               flush_dcache_page(iobuf->maplist[pgcount]);
-       }
+       flush_cache_range(mm, va, va + len);
        dprintk ("map_user_kiobuf: end OK\n");
        return 0;
 }

Don't remember why I made it or whether it's right. Thought I'd throw it out to the mailing list rather than just delete it.

Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
#1 lore raw
Quoted 3 lines · Matthew Wilcox

I was just looking at a 2.4 problem for lamont so I went back to a 2.4 tree I had lying around. I found this diff:

When running a very memory intensive application (Video Orbits), I noticed some strange behaviour -- the cursor for example being in the wrong place in a text window running emacs, and other wierd not-strictly-repeatable things -- as the available memory became very low. Applying this patch seems to help.

William

Signature · 4 lines
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards