[parisc-linux] Anyone still caring about 2.4?

Matthew Wilcox willy at debian.org
Wed Mar 10 08:29:04 MST 2004


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
diff -u -p -r1.25 memory.c
--- a/mm/memory.c       1 Dec 2003 22:52:15 -0000       1.25
+++ b/mm/memory.c       1 Dec 2003 23:08:32 -0000
@@ -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.

-- 
"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


More information about the parisc-linux mailing list