Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1927
b: refs/heads/master
c: 6952df0
h: refs/heads/master
i:
  1925: 1b61b98
  1923: 6d568f8
  1919: ad4556a
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Jun 9, 2005
1 parent 7bf3c24 commit e9781fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e1dd23a0012c3929737798fda9fede0e783f4ff3
refs/heads/master: 6952df035509717bdc46194b2a3d6ffb9349f267
4 changes: 1 addition & 3 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2577,14 +2577,14 @@ static void __atapi_pio_bytes(struct ata_queued_cmd *qc, unsigned int bytes)
next_sg:
sg = &qc->sg[qc->cursg];

next_page:
page = sg->page;
offset = sg->offset + qc->cursg_ofs;

/* get the current page and offset */
page = nth_page(page, (offset >> PAGE_SHIFT));
offset %= PAGE_SIZE;

/* don't overrun current sg */
count = min(sg->length - qc->cursg_ofs, bytes);

/* don't cross page boundaries */
Expand All @@ -2609,8 +2609,6 @@ static void __atapi_pio_bytes(struct ata_queued_cmd *qc, unsigned int bytes)
kunmap(page);

if (bytes) {
if (qc->cursg_ofs < sg->length)
goto next_page;
goto next_sg;
}
}
Expand Down

0 comments on commit e9781fc

Please sign in to comment.