wrappers for ->i_mutex access
[deliverable/linux.git] / drivers / block / aoe / aoecmd.c
index ad80c85e0857064c1ed3cd6420a1ef582ad76c4a..d048d2009e897a7e76d523ec704b1fd1f77dd76b 100644 (file)
@@ -964,9 +964,9 @@ aoecmd_sleepwork(struct work_struct *work)
                ssize = get_capacity(d->gd);
                bd = bdget_disk(d->gd, 0);
                if (bd) {
-                       mutex_lock(&bd->bd_inode->i_mutex);
+                       inode_lock(bd->bd_inode);
                        i_size_write(bd->bd_inode, (loff_t)ssize<<9);
-                       mutex_unlock(&bd->bd_inode->i_mutex);
+                       inode_unlock(bd->bd_inode);
                        bdput(bd);
                }
                spin_lock_irq(&d->lock);
This page took 0.02423 seconds and 5 git commands to generate.