Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359525
b: refs/heads/master
c: d646a02
h: refs/heads/master
i:
  359523: 78efb3b
v: v3
  • Loading branch information
Guo Chao authored and Jens Axboe committed Feb 22, 2013
1 parent 6dc0578 commit 8ae4df4
Show file tree
Hide file tree
Showing 2 changed files with 4 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: a3cc86c2f00839453d2dbeb46bfc44e885b073db
refs/heads/master: d646a02a9d44d1421f273ae3923d97b47b918176
4 changes: 3 additions & 1 deletion trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,9 @@ void bd_set_size(struct block_device *bdev, loff_t size)
{
unsigned bsize = bdev_logical_block_size(bdev);

bdev->bd_inode->i_size = size;
mutex_lock(&bdev->bd_inode->i_mutex);
i_size_write(bdev->bd_inode, size);
mutex_unlock(&bdev->bd_inode->i_mutex);
while (bsize < PAGE_CACHE_SIZE) {
if (size & bsize)
break;
Expand Down

0 comments on commit 8ae4df4

Please sign in to comment.