Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226861
b: refs/heads/master
c: 46081b1
h: refs/heads/master
i:
  226859: 3af95be
v: v3
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Dec 23, 2010
1 parent 00bded0 commit 6816404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 373daacfce9ea0091cb3027572354ddebefb8ebb
refs/heads/master: 46081b166415acb66d4b3150ecefcd9460bb48a1
3 changes: 2 additions & 1 deletion trunk/drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -3729,7 +3729,8 @@ static int enlarge_buffer(struct st_buffer * STbuffer, int new_size, int need_dm
b_size = PAGE_SIZE << order;
} else {
for (b_size = PAGE_SIZE, order = 0;
order < ST_MAX_ORDER && b_size < new_size;
order < ST_MAX_ORDER &&
max_segs * (PAGE_SIZE << order) < new_size;
order++, b_size *= 2)
; /* empty */
STbuffer->reserved_page_order = order;
Expand Down

0 comments on commit 6816404

Please sign in to comment.