Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83410
b: refs/heads/master
c: 67a3b2b
h: refs/heads/master
v: v3
  • Loading branch information
Robert P. J. Day authored and Linus Torvalds committed Feb 6, 2008
1 parent 891bf5d commit 64e7ed4
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: 2118116e5ed2432a054d52f9925dbf92d2cb7279
refs/heads/master: 67a3b2b6ce09809b21f60401e81663f2c8131640
3 changes: 2 additions & 1 deletion trunk/drivers/block/rd.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#include <linux/backing-dev.h>
#include <linux/blkpg.h>
#include <linux/writeback.h>
#include <linux/log2.h>

#include <asm/uaccess.h>

Expand Down Expand Up @@ -450,7 +451,7 @@ static int __init rd_init(void)
err = -ENOMEM;

if (rd_blocksize > PAGE_SIZE || rd_blocksize < 512 ||
(rd_blocksize & (rd_blocksize-1))) {
!is_power_of_2(rd_blocksize)) {
printk("RAMDISK: wrong blocksize %d, reverting to defaults\n",
rd_blocksize);
rd_blocksize = BLOCK_SIZE;
Expand Down

0 comments on commit 64e7ed4

Please sign in to comment.