wrappers for ->i_mutex access
[deliverable/linux.git] / drivers / staging / lustre / lustre / llite / dir.c
index 7b355319079c3f2b4ca41f944929411747b30b5c..8982f7d1b374823eb8dec18f98b0b1ef167e8f26 100644 (file)
@@ -1858,7 +1858,7 @@ static loff_t ll_dir_seek(struct file *file, loff_t offset, int origin)
        int api32 = ll_need_32bit_api(sbi);
        loff_t ret = -EINVAL;
 
-       mutex_lock(&inode->i_mutex);
+       inode_lock(inode);
        switch (origin) {
        case SEEK_SET:
                break;
@@ -1896,7 +1896,7 @@ static loff_t ll_dir_seek(struct file *file, loff_t offset, int origin)
        goto out;
 
 out:
-       mutex_unlock(&inode->i_mutex);
+       inode_unlock(inode);
        return ret;
 }
 
This page took 0.024457 seconds and 5 git commands to generate.