Daisuke Nishimura said: > On Tue, 18 Nov 2008 12:48:52 +0000 (GMT) > Hugh Dickins wrote: >> That's a lot of files which you may not wish to update to get working >> right now: I think page_cgroup.c can _probably_ reuse KM_PTE1 as a >> temporary measure, but please verify that's safe first. >> > Thank you for your comment. > > Hmm, shmem_map_and_free_swp might unmap dir anyway and caller > (shmem_trancate_range) handles the case, but I do agree it's > not good manner to unmap other people's kmaps. > Hmm...Sorry for my original implementation. Okay, how about this direction ? 1. at first, remove kmap_atomic from page_cgroup.c and use GFP_KERNEL to allocate buffer. 2. later, add kmap_atomic + HighMem buffer support in explicit style. maybe KM_BOUNCE_READ...can be used..... patch for BUGFIX is attached. (Sorry, I have to use Web-Mail and can't make it inlined) Sorry, -Kame