]> git.neil.brown.name Git - history.git/commit
[PATCH] shmem fixes
authorAndrew Morton <akpm@zip.com.au>
Thu, 4 Jul 2002 15:30:44 +0000 (08:30 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 4 Jul 2002 15:30:44 +0000 (08:30 -0700)
commite7c8964639dbb27af8156afd99fd2f3f7b60d869
tree04cd3da03ac7e07c63d2b12e1899c00356700152
parentb6a7f08851712698bc9e545134a839a7f5683c2c
[PATCH] shmem fixes

A shmem cleanup/bugfix patch from Hugh Dickins.

- Minor: in try_to_unuse(), only wait on writeout if we actually
  started new writeout.  Otherwise, there is no need because a
  wait_on_page_writeback() has already been executed against this page.
  And it's locked, so no new writeback can start.

- Minor: in shmem_unuse_inode(): remove all the
  wait_on_page_writeback() logic.  We already did that in
  try_to_unuse(), adn the page is locked so no new writeback can start.

- Less minor: add a missing a page_cache_release() to
  shmem_get_page_locked() in the uncommon case where the page was found
  to be under writeout.
mm/shmem.c
mm/swapfile.c