Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186725
b: refs/heads/master
c: 5d83d5a
h: refs/heads/master
i:
  186723: b8fa85c
v: v3
  • Loading branch information
Nitin Gupta authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 279cab8 commit 6d6fb13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7eef7533909f3ea50e8b375777242f778e8da11e
refs/heads/master: 5d83d5a0b5ee332b724978d657c0af17f14e807e
4 changes: 4 additions & 0 deletions trunk/drivers/staging/ramzswap/ramzswap_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,10 @@ static int create_device(struct ramzswap *rzs, int device_id)
* or set equal to backing swap device (if provided)
*/
set_capacity(rzs->disk, 0);

blk_queue_physical_block_size(rzs->disk->queue, PAGE_SIZE);
blk_queue_logical_block_size(rzs->disk->queue, PAGE_SIZE);

add_disk(rzs->disk);

rzs->init_done = 0;
Expand Down

0 comments on commit 6d6fb13

Please sign in to comment.