diff options
| author | Shaohua Li <[email protected]> | 2011-09-15 00:45:19 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-09-15 01:17:56 +0000 |
| commit | cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941 (patch) | |
| tree | 5c8c8b127e8bd31300fba1f5aa155c6463c4c78f /drivers/scsi/pmcraid.c | |
| parent | drivers/gpio/gpio-generic.c: fix build errors (diff) | |
| download | kernel-cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941.tar.gz kernel-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 <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
0 files changed, 0 insertions, 0 deletions
