wrappers for ->i_mutex access
[linux-block.git] / drivers / staging / lustre / lustre / llite / rw.c
index 95cdb0c58b04dffaa784cd04ef07f6f36fad004e..f355474967d62617319859e8df2830795a0a5458 100644 (file)
@@ -115,8 +115,8 @@ static struct ll_cl_context *ll_cl_init(struct file *file,
                struct inode *inode = vmpage->mapping->host;
                loff_t pos;
 
-               if (mutex_trylock(&inode->i_mutex)) {
-                       mutex_unlock(&(inode)->i_mutex);
+               if (inode_trylock(inode)) {
+                       inode_unlock((inode));
 
                        /* this is too bad. Someone is trying to write the
                         * page w/o holding inode mutex. This means we can