aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index ac384b2a6a33..a173db5fc76a 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -2111,13 +2111,14 @@ static void event_callback(void *context)
2111 wake_up(&md->eventq); 2111 wake_up(&md->eventq);
2112} 2112}
2113 2113
2114/*
2115 * Protected by md->suspend_lock obtained by dm_swap_table().
2116 */
2114static void __set_size(struct mapped_device *md, sector_t size) 2117static void __set_size(struct mapped_device *md, sector_t size)
2115{ 2118{
2116 set_capacity(md->disk, size); 2119 set_capacity(md->disk, size);
2117 2120
2118 mutex_lock(&md->bdev->bd_inode->i_mutex);
2119 i_size_write(md->bdev->bd_inode, (loff_t)size << SECTOR_SHIFT); 2121 i_size_write(md->bdev->bd_inode, (loff_t)size << SECTOR_SHIFT);
2120 mutex_unlock(&md->bdev->bd_inode->i_mutex);
2121} 2122}
2122 2123
2123/* 2124/*