Merge git://www.linux-watchdog.org/linux-watchdog
[deliverable/linux.git] / fs / orangefs / file.c
index ae92795ed9658d476a6ab229582086986fc2ad27..491e82c6f705fc8d915a7f942b7f04a2bdcc16f6 100644 (file)
@@ -445,7 +445,7 @@ static ssize_t orangefs_file_write_iter(struct kiocb *iocb, struct iov_iter *ite
 
        gossip_debug(GOSSIP_FILE_DEBUG, "orangefs_file_write_iter\n");
 
-       mutex_lock(&file->f_mapping->host->i_mutex);
+       inode_lock(file->f_mapping->host);
 
        /* Make sure generic_write_checks sees an up to date inode size. */
        if (file->f_flags & O_APPEND) {
@@ -492,7 +492,7 @@ static ssize_t orangefs_file_write_iter(struct kiocb *iocb, struct iov_iter *ite
 
 out:
 
-       mutex_unlock(&file->f_mapping->host->i_mutex);
+       inode_unlock(file->f_mapping->host);
        return rc;
 }
 
This page took 0.02395 seconds and 5 git commands to generate.