orangefs: refactor inode type or link_target change detection
[linux-2.6-block.git] / fs / readdir.c
index ced679179cac0686407c3743cff177289bfc3959..e69ef3b79787b9fb4f02ab65b35c28571c9df1a0 100644 (file)
@@ -44,7 +44,7 @@ int iterate_dir(struct file *file, struct dir_context *ctx)
                fsnotify_access(file);
                file_accessed(file);
        }
-       mutex_unlock(&inode->i_mutex);
+       inode_unlock(inode);
 out:
        return res;
 }