wrappers for ->i_mutex access
[deliverable/linux.git] / drivers / usb / gadget / legacy / inode.c
index 365afd7e14f8cade738683a06616b4116fa84fc9..7e179f81d05cae3e91fd8b976a1f2665e3958cc3 100644 (file)
@@ -1521,10 +1521,10 @@ static void destroy_ep_files (struct dev_data *dev)
                spin_unlock_irq (&dev->lock);
 
                /* break link to dcache */
-               mutex_lock (&parent->i_mutex);
+               inode_lock(parent);
                d_delete (dentry);
                dput (dentry);
-               mutex_unlock (&parent->i_mutex);
+               inode_unlock(parent);
 
                spin_lock_irq (&dev->lock);
        }
This page took 0.024099 seconds and 5 git commands to generate.