summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2011-09-15 02:45:19 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2011-09-15 03:17:56 +0200
commitcc39c6a9bbdebfcf1a7dee64d83bf302bc38d941 (patch)
tree5c8c8b127e8bd31300fba1f5aa155c6463c4c78f /drivers/target
parentdrivers/gpio/gpio-generic.c: fix build errors (diff)
downloadlinux-cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941.tar.xz
linux-cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941.zip
mm: account skipped entries to avoid looping in find_get_pages
The found entries by find_get_pages() could be all swap entries. In this case we skip the entries, but make sure the skipped entries are accounted, so we don't keep looping. Using nr_found > nr_skip to simplify code as suggested by Eric. Reported-and-tested-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/target')
0 files changed, 0 insertions, 0 deletions