Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359546
b: refs/heads/master
c: 541c742
h: refs/heads/master
v: v3
  • Loading branch information
Guo Chao authored and Jens Axboe committed Feb 22, 2013
1 parent 1f6a4c8 commit 22b2f25
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 5370019dc2d2c2ff90e95d181468071362934f3a
refs/heads/master: 541c742a7559eb65f0e36d3e2338c2ca532a3e61
5 changes: 5 additions & 0 deletions trunk/drivers/block/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,8 +1092,13 @@ loop_set_status(struct loop_device *lo, const struct loop_info64 *info)

if (lo->lo_offset != info->lo_offset ||
lo->lo_sizelimit != info->lo_sizelimit) {
struct block_device *bdev = lo->lo_device;

if (figure_loop_size(lo, info->lo_offset, info->lo_sizelimit))
return -EFBIG;

bd_set_size(bdev, (loff_t)get_capacity(bdev->bd_disk) << 9);
kobject_uevent(&disk_to_dev(bdev->bd_disk)->kobj, KOBJ_CHANGE);
}
loop_config_discard(lo);

Expand Down

0 comments on commit 22b2f25

Please sign in to comment.