1. 30 7月, 2009 1 次提交
  2. 01 4月, 2009 1 次提交
  3. 26 3月, 2009 1 次提交
  4. 15 3月, 2009 2 次提交
  5. 08 1月, 2009 1 次提交
    • D
      NOMMU: Fix cleanup handling in ramfs_nommu_get_umapped_area() · 0e8f989a
      David Howells 提交于
      Fix cleanup handling in ramfs_nommu_get_umapped_area() by only freeing the
      number of pages that find_get_pages() said it had returned (nr) rather than
      attempting to free the number of pages we asked for (lpages) - thus avoiding
      the situation whereby put_page() may be handed NULL pointers if
      find_get_pages() returned fewer pages that were requested.
      
      Also avoid a warning about nr being uninitialised and the need for an
      if-statement in the cleanup path by using appropriate gotos.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      0e8f989a
  6. 20 10月, 2008 1 次提交
    • R
      vmscan: split LRU lists into anon & file sets · 4f98a2fe
      Rik van Riel 提交于
      Split the LRU lists in two, one set for pages that are backed by real file
      systems ("file") and one for pages that are backed by memory and swap
      ("anon").  The latter includes tmpfs.
      
      The advantage of doing this is that the VM will not have to scan over lots
      of anonymous pages (which we generally do not want to swap out), just to
      find the page cache pages that it should evict.
      
      This patch has the infrastructure and a basic policy to balance how much
      we scan the anon lists and how much we scan the file lists.  The big
      policy changes are in separate patches.
      
      [lee.schermerhorn@hp.com: collect lru meminfo statistics from correct offset]
      [kosaki.motohiro@jp.fujitsu.com: prevent incorrect oom under split_lru]
      [kosaki.motohiro@jp.fujitsu.com: fix pagevec_move_tail() doesn't treat unevictable page]
      [hugh@veritas.com: memcg swapbacked pages active]
      [hugh@veritas.com: splitlru: BDI_CAP_SWAP_BACKED]
      [akpm@linux-foundation.org: fix /proc/vmstat units]
      [nishimura@mxp.nes.nec.co.jp: memcg: fix handling of shmem migration]
      [kosaki.motohiro@jp.fujitsu.com: adjust Quicklists field of /proc/meminfo]
      [kosaki.motohiro@jp.fujitsu.com: fix style issue of get_scan_ratio()]
      Signed-off-by: NRik van Riel <riel@redhat.com>
      Signed-off-by: NLee Schermerhorn <Lee.Schermerhorn@hp.com>
      Signed-off-by: NKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Signed-off-by: NHugh Dickins <hugh@veritas.com>
      Signed-off-by: NDaisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4f98a2fe
  7. 03 10月, 2008 1 次提交
  8. 04 7月, 2008 1 次提交
  9. 17 10月, 2007 1 次提交
  10. 01 8月, 2007 1 次提交
  11. 10 7月, 2007 1 次提交
  12. 08 6月, 2007 1 次提交
  13. 31 5月, 2007 1 次提交
  14. 09 5月, 2007 1 次提交
  15. 13 2月, 2007 1 次提交
  16. 12 2月, 2007 1 次提交
  17. 31 12月, 2006 1 次提交
  18. 09 12月, 2006 1 次提交
  19. 01 10月, 2006 1 次提交
  20. 11 7月, 2006 1 次提交
    • D
      [PATCH] NOMMU: Fix execution off of ramfs with mmap() · 21ff8216
      David Howells 提交于
      Fix execution through the FDPIC binfmt of programs stored on ramfs by
      preventing the ramfs mmap() returning successfully on a private mapping of
      a ramfs file.  This causes NOMMU mmap to make a copy of the mapped portion
      of the file and map that instead.
      
      This could be improved by granting direct mapping access to read-only
      private mappings for which the data is stored on a contiguous run of pages.
       However, this is only likely to be the case if the file was extended with
      truncate before being written.
      
      ramfs is left to map the file directly for shared mappings so that SYSV IPC
      and POSIX shared memory both still work.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Cc: Hugh Dickins <hugh@veritas.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      21ff8216
  21. 29 6月, 2006 1 次提交
  22. 29 3月, 2006 1 次提交
  23. 22 3月, 2006 1 次提交
  24. 07 1月, 2006 1 次提交
    • D
      [PATCH] NOMMU: Provide shared-writable mmap support on ramfs · 642fb4d1
      David Howells 提交于
      The attached patch makes ramfs support shared-writable mmaps by:
      
       (1) Attempting to perform a contiguous block allocation to the requested size
           when truncate attempts to increase the file from zero size, such as
           happens when:
      
      	fd = shm_open("/file/on/ramfs", ...):
      	ftruncate(fd, size_requested);
      	addr = mmap(NULL, subsize, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED,
      		    fd, offset);
      
       (2) Permitting any shared-writable mapping over any contiguous set of extant
           pages. get_unmapped_area() will return the address into the actual ramfs
           pages. The mapping may start anywhere and be of any size, but may not go
           over the end of file. Multiple mappings may overlap in any way.
      
       (3) Not permitting a file to be shrunk if it would truncate any shared
           mappings (private mappings are copied).
      
      Thus this patch provides support for POSIX shared memory on NOMMU kernels,
      with certain limitations such as there being a large enough block of pages
      available to support the allocation and it only working on directly mappable
      filesystems.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      642fb4d1