Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362820
b: refs/heads/master
c: bd86055
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Apr 26, 2013
1 parent 218408c commit 741eb41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 3ad19b8fb07497f975aa6aba187198ce11191dd2
refs/heads/master: bd86055fc938493259a15dc00ee77435b4d2e83f
6 changes: 4 additions & 2 deletions trunk/drivers/s390/block/scm_blk_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ void scm_cluster_request_irq(struct scm_request *scmrq)

bool scm_cluster_size_valid(void)
{
return write_cluster_size == 0 || write_cluster_size == 32 ||
write_cluster_size == 64 || write_cluster_size == 128;
if (write_cluster_size == 1 || write_cluster_size > 128)
return false;

return !(write_cluster_size & (write_cluster_size - 1));
}

0 comments on commit 741eb41

Please sign in to comment.